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

Forum Discussion

j7GUvseRjB's avatar
j7GUvseRjB
Explorer | Level 3
4 years ago

How does Dropbox upload huge files that changed only a small portion?

I have a huge file in Dropbox. If I changed only a small portion, let's say 10 bytes from offset at 1GB position. Will Dropbox only upload the changed portion or upload the whole file again? Thanks.


  • j7GUvseRjB wrote:

    I have a huge file in Dropbox. If I changed only a small portion, let's say 10 bytes from offset at 1GB position. Will Dropbox only upload the changed portion or upload the whole file again? Thanks.


    It depends on how the saved file is written.

     

    When Dropbox syncs your files, it first breaks them down into 4 MB chunks and then hashes each chunk. Dropbox then compares each hash to those that already exist in your account. Any that match are ignored and any that are different are uploaded. So, typically, if you have a large file already synced and you change just a few bytes, Dropbox will compare the entire file but only upload the chunks that have changed.

     

    I said "it depends" earlier because there are cases where the entire file will be uploaded again. Such as while saving a file and the entire structure of the file changes, Dropbox will end up indexing and syncing the entire file even though you may have only made a minor change.

  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II

    j7GUvseRjB wrote:

    I have a huge file in Dropbox. If I changed only a small portion, let's say 10 bytes from offset at 1GB position. Will Dropbox only upload the changed portion or upload the whole file again? Thanks.


    It depends on how the saved file is written.

     

    When Dropbox syncs your files, it first breaks them down into 4 MB chunks and then hashes each chunk. Dropbox then compares each hash to those that already exist in your account. Any that match are ignored and any that are different are uploaded. So, typically, if you have a large file already synced and you change just a few bytes, Dropbox will compare the entire file but only upload the chunks that have changed.

     

    I said "it depends" earlier because there are cases where the entire file will be uploaded again. Such as while saving a file and the entire structure of the file changes, Dropbox will end up indexing and syncing the entire file even though you may have only made a minor change.

    • j7GUvseRjB's avatar
      j7GUvseRjB
      Explorer | Level 3

      Thanks for providing this info. So if I understand correctly, when I add a new byte to the beginning of the huge file, it will trigger a full upload, right?

About Create, upload, and share

Find help to solve issues with creating, uploading, and sharing files and folders in Dropbox. Get support and advice from the Dropbox Community.

Need more support

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!