cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Content hash calculation for data block size less then 4MB

Content hash calculation for data block size less then 4MB

Pankil
New member | Level 2

Is it necessary to split the file in to block of the 4MB to compute the correct hash? How can I calculate the content hash for the data block size less then 4MB?

1 Reply 1

Re: Content hash calculation for data block size less then 4MB

Greg-DB
Dropboxer

It sounds like you're referring to calculating the "content_hash" value for a file in Dropbox as returned by the Dropbox API. You can find documentation and example code for this on the Content Hash page.

 

In order to calculate the value correctly, you need to follow the instructions there exactly. That includes always dividing the file into 4 MB pieces. For files smaller than 4 MB, the one (first/last) piece will be smaller than 4 MB. That's acceptable, and your code should proceed normally in that case, following the instructions to compute the value.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?