cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

FileMetadata checksum

FileMetadata checksum

Joel T.9
New member | Level 2

Is there something better than file size to use as a checksum?

Maybe Sha1 or MD5? I didn't see one on the FileMetadata class. It appears "Rev" changes even when the contents haven't changed (ie. on file rename)

17 Replies 17

Greg-DB
Dropbox Staff

The Dropbox API doesn't offer any sort of file hash or checksum unfortunately, but I'll be sure to pass this along as a feature request.

Joel T.9
New member | Level 2

That would be great, "file size" is the only item that appears to be correlated with the actual content, please correct me if I'm wrong, even date changes simply on file name change.

Greg-DB
Dropbox Staff

Yes, even the date would change. The file size will always indicate the size of the file contents, though we don't recommend using that as a way to identify the actual contents of course.

Brian S.53
Explorer | Level 3

What do you recommend for identifying changes to the actual file contents?

Joel T.9
New member | Level 2

For the time being, I'm fetching the file and calculating the MD5 myself. I'm hoping Dropbox will allow access to the checksum they are already calculating, and I'll just replace with that... Hopefully they will give us access (and it's not a different algorithm).

Brian S.53
Explorer | Level 3

So there's no way around needing to download the entire file just to see if it's the same as the local copy?

Greg-DB
Dropbox Staff

Hi Brian, I just replied on the new thread you started, but in short, yes, that's correct, the Dropbox API doesn't currently offer file hashes, so you'd need to download it to check the contents.

Olaf B.2
New member | Level 2

Any news on this? Can we hope to see md5sum among the API methods some time soon?

Greg-DB
Dropbox Staff

Apologies, no news on this. I'm not aware of plans for this.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    cro Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?