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
wrench1815
4 years agoNew member | Level 2
A way to shorten the url of the files when using dropbox with DJango
I've been trying to make a site, and am using Dropbox for image backend. But i have a problem, The url of the image that is uploaded to dropbox is too long like this image link is more than 400 character long.
And on top of that it fetches a new link every time the image is rendered/called from DB. Is there a way to use short, long live urls when using Dropbox API?
- Greg-DBDropbox Staff
The kind of link in your screenshot is a temporary link returned by /2/files/get_temporary_link. There isn't an option to make those shorter, but an alternative would be to use /2/sharing/create_shared_link_with_settings instead. That returns shorter shared links that don't expire by default. They do point to HTML preview pages by default, but you can modify them as shown here for different behaviors, such as direct file content access. Note that these shared links are subject to bandwidth limits.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 11 days ago
If 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!