How to upload pdf and image file

Plz anyone help me how to upload pdf and image file in rest api service. And one more thing how to automatically sync. Image to seafile cloud when internet is available. Thank u

Ask whoever wrote the backend. It’s completely dependent on what it is expecting.