We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Roon
7 years agoExplorer | Level 4
Share Link Redirect URL has no Content-Length
I'm trying to get the filesize from a shared link: Looking at the answer to [this post] - the shared link creates a redirect to the file, which should provide a filesize in the headers.. It ...
- 7 years agoI don't believe there is a way to find out the size ahead of time unfortunately.
Roon
Explorer | Level 4
Thanks..
So I take that to mean that the compression is incomplete when the headers are sent.. and consequently there is no known size..
Leading me to the question, how am i supposed to know the compressed file-size of a folder prior to downloading it? (I need to indicate progress as a percentage)
So I take that to mean that the compression is incomplete when the headers are sent.. and consequently there is no known size..
Leading me to the question, how am i supposed to know the compressed file-size of a folder prior to downloading it? (I need to indicate progress as a percentage)
Greg-DB
7 years agoDropbox Staff
I don't believe there is a way to find out the size ahead of time unfortunately.
- sechel6 years agoExplorer | Level 3
Hey there,
there is an easy solution to this question: Do a HEAD request with a Range:bytes=0- header. Then you will have a Content-Length header in the response 😀 Hope that helps, greetings
Stefan
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!