Announcements
Do you have an idea for Dropbox Paper? Share it with us!

Problem with file integrity when uploaded

Explorer | Level 3

Hello there,

I am getting an issue with the files uploaded via the API.

the Dropbox hash differ from the original and uploaded.

(venv34) Kapss-MacBook-Pro:python bramburn$ python hash_file.py /Users/bramburn/Desktop/Toc1012.fls
d2d3e87285f85ffaa8ddf0870a46bb2e580a293e32ba20a155317654479dfb2c
(venv34) Kapss-MacBook-Pro:python bramburn$ python hash_file.py /Users/bramburn/Downloads/Toc1012.fls
85b64345dbb99010eeb4e7a61bc61a99c45c595a0ba594b090b9ebad5daf8c0d
(venv34) Kapss-MacBook-Pro:python bramburn$ 

The file in /Downloads/ is the web downloaded toc1012.fls file, the file in the /Desktop/ is the original.

The file is different.

I also tried a shasum as follows with two different file and I am getting an issue with the file:

Kapss-MacBook-Pro:~ bramburn$ shasum /Users/bramburn/Downloads/Toc1008.fls 
f44df7db8f9321145a7b091fd0d25b107521d998  /Users/bramburn/Downloads/Toc1008.fls
Kapss-MacBook-Pro:~ bramburn$ shasum /Users/bramburn/Downloads/Toc1008.fls 
f44df7db8f9321145a7b091fd0d25b107521d998  /Users/bramburn/Downloads/Toc1008.fls
Kapss-MacBook-Pro:~ bramburn$ shasum /Users/bramburn/Desktop/Toc1008.fls 
ba728834eeecd6eb3dfaa5508e43815c15c07f45  /Users/bramburn/Desktop/Toc1008.fls
Kapss-MacBook-Pro:~ bramburn$ shasum /Users/bramburn/Downloads/Toc1012.fls 
4a1b522c8f5e31ed7e1d69feec5f273775b32609  /Users/bramburn/Downloads/Toc1012.fls
Kapss-MacBook-Pro:~ bramburn$ shasum /Users/bramburn/Downloads/Toc1012.fls 
4a1b522c8f5e31ed7e1d69feec5f273775b32609  /Users/bramburn/Downloads/Toc1012.fls
Kapss-MacBook-Pro:~ bramburn$ shasum /Users/bramburn/Desktop/Toc1012.fls 
5d8c75382de48bdbd25c78d20a923e869049a8a8  /Users/bramburn/Desktop/Toc1012.fls
Kapss-MacBook-Pro:~ bramburn$ 

Anyone know how to resolve this when uploading files? or making sure it is the same?

2 Replies

Re: Problem with file integrity when uploaded

Dropboxer

Apologies for the delay! It looks like your post got caught in the forum's spam filter for some reason. It was just restored.

Anyway, can you share the code you're using to upload the files in this case? It sounds like something may be going wrong during the upload resulting in the incorrect data getting committed.

Reply
Loading...

Re: Problem with file integrity when uploaded

Explorer | Level 3

hi Greg, i was able to resolve this. For some reason the f.tell() was off for the offset.

Reply
Loading...
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post