File upload and update code

Hi everyone!!

I am not able to find the code for file uploading and/or updating in the desktop app of NextCloud. I wanted to know the implementation of these features.

It would be helpful if someone could provide the link for the above.

Thanks in advance.

Do you mean the desktop app?

@SchBenedikt I have looked through this repo but could not find the file upload/update related code.

I’m not a developer, so I can’t really help, but I’m pretty sure the complete code of the desktop client is in that repo.

However, it would probably be best if you could explain what you are trying to achieve, and then maybe someone will be able to help you with that…

@bb77 I want to understand how are the files/documents sent to the API from the app. and also while updating are the entire files sent or only the differences (between the previous and current) are sent to the API.

Maybe you should have asked that in the first place. :wink:

Afaik, synchronisation works on file level, and I’m not a 100% sure, but in that case I’d say, the entire file would have to be sent again after a change.

Anyways, I’m pretty sure, this specific question already came up at some point, and maybe you can find the answer by adjusting your search queries, or maybe someone else will chime in, that can provide a more precise answer…