Dropbox windows app is smart and when currently uploading file already exists somewhere in dropbox (file with the same content hash I guess), it doesn't fully upload it again. It gets marked as uploaded almost immediately. Is it possible to achieve such optimization via the Dropbox Upload API? I use UploadSessionStartAsync APi, but it always fully upload any file even if the file already exists in neighbor directory.
Check if that local content hash exists in the account already, by looking for it in the metadata retrieved in the first step.
If the content_hash is found in the existing metadata, use /2/files/copy_v2 to copy the existing file to the new path instead of uploading it again. If it is not found, proceed to upload it normally (e.g., using UploadSessionStartAsync, etc.).