cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We love to hear how every person gets the most from Dropbox, and it seems everyone has a slightly different use for it - tell us yours here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

A way to shorten the url of the files when using dropbox with DJango

A way to shorten the url of the files when using dropbox with DJango

wrench1815
New member | Level 2

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.

 

unknownAnd 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?

 

1 Reply 1

Re: A way to shorten the url of the files when using dropbox with DJango

Greg-DB
Dropboxer

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.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?