We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Здравко's avatar
Здравко
Legendary | Level 20
4 years ago

Partial file update

Hello,

Is there some available way to update (not entire upload) a file?

Let's assume some 100MB file and has to be updated only 1kB starting on positon 1MB. Is there a convenient way this to be done without need to download entire file, update it locally, and finally upload it back? I can't find such in API documentation. Currently, that's a complete resources lost (both time and traffic), especially if some small part of a big file have to be updated relatively often!

Thanks.

  • tahsini's avatar
    tahsini
    Icon for Dropbox Staff rankDropbox Staff

    We currently do not have a feature available in the API for this. I have filed this as a feature request, but I can't promise if or when this would be implemented.

    • Sam S.6's avatar
      Sam S.6
      Explorer | Level 4

      Partial updates would indeed be a very useful feature! After all, this is what the Dropbox client itself is doing.

    • Здравко's avatar
      Здравко
      Legendary | Level 20

      While talking for missing features that have to be added, let's mention missing adequate API dedicated for serialization. Currently something similar tends to be "2/files/lock_file_batch" and "2/files/unlock_file_batch". While previous API calls are usable to serialize user (human) work, the same calls can't be used for application serialization! If an application have to update particular content continuously and monitor changes, coming from another instance (running on other device owned by the same user or shared to somebody else),... 🧐 How can this get done?! - actually to be ensured multi device system stability! 🤔 I can't see such right now.

      Exact implementation gonna depends on the underlying storage engine in all cases. But in all cases a new call scheme should become available! To be stable, lock has to be driven by a single connection and if for some reason connection breaks by accident, short time after that (a few seconds, for example) the lock has to get released automatic to lets access by others. 👆 Just an idea deserving attention.

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Thanks for the additional feedback!

         

        Здравко For information on detecting changes I recommend reading the Detecting Changes Guide, if you haven't already. Also, for reference, Dropbox does enforce an automatic system of short-term locking that prevents simultaneous changes. You can find more information on that under the "Too Many Writes" section in the Performance Guide. It sounds like you may want something like that where you can control that from your own code though, so I'll pass that along as a feature request.