cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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

Greg-DB
Dropbox 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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?