In my application I download video files(.mp4 and .avi) from dropbox folder to folder in sdcard. I need to play file with videoview. How I can check files integrity (equality of files from sdcard and DropBox).
Asked
Active
Viewed 2,706 times
2
-
upvoting as Dropbox needs to include MD5/SHA1 on their side! – Joel Mar 15 '16 at 15:29
2 Answers
0
-
1
-
The Dropbox API currently doesn't offer a way to request the hash of a file. – Greg Jul 15 '14 at 16:58
-
Unfortunately, Greg is right. You can still check the size of the file though. It is not nearly as good as a hash, but it seems it is the only choice. – slezadav Jul 16 '14 at 11:16
0
The Dropbox API now offers a hash of file data that you can use to verify a file's contents. You can find it in FileMetadata.content_hash
. It isn't a single MD5 or SHA1, but rather a combination of SHA256 hashes of the pieces of the file. You can find more information here:

Greg
- 16,359
- 2
- 34
- 44