You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
flygecko
7 years agoExplorer | Level 4
Over the air download via API fails today, worked yesterday.
Hi, I have an embedded device that downlopads firmware updates over the air via the DropBox API. Downloads worked fine yesterday, and fail today. The code has not changed since then, and I even ...
Greg-DB
Dropbox Staff
It looks like the call to /2/files/get_temporary_link itself is succeeding, since it is showing the retrieved /apitl link. It looks like the log might be cut off unfortunately though.
I just retrieved an /apitl link from /2/files/get_temporary_link myself and it seems to be working. Can you get a fresh one from your app and try it manually (perhaps with any additional verbose logging possible) to see if it's working on your side, or what it's returning that might be causing issues in your app?
flygecko
7 years agoExplorer | Level 4
What I have seen on my side is that the filename returned is 553 bytes in length. The TI code has a buffer length of 512. This would most certainly cause an issue. How big is the url you received when you retrieve the apitl link?
Thanks in advance,
Vic
- Greg-DB7 years agoDropbox Staff
Thanks for the additional information.
The length of the returned link can depend on the length of the original file path (as well as potentially other factors), so we can't guarantee any particular maxmimum length unfortunately. (For reference, mine is also coming out longer than 512 bytes.)
So, this may have just been a result of the file path getting longer and resulting in a URL larger than that buffer size. I'm afraid I don't have a solution on the API side, since the link can be expected to get that big. Are you able to increase the buffer size?
- flygecko7 years agoExplorer | Level 4
In future revisions most likely. This does not bode well for any devices already out in the field. I will work on fixing TI's code and see what I can do. Thank you for the help.
- flygecko7 years agoExplorer | Level 4
Is there a maximum size? If I am going to be fixing this I would like to do it only once.
Thanks,
Vic
- Greg-DB7 years agoDropbox Staff
No, there's no maximum size for the link.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days 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!