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: 

/get_temporary_link URL is always setting content-disposition: attachment Header

/get_temporary_link URL is always setting content-disposition: attachment Header

De L.1
Collaborator | Level 9

When doing a call to https://api.dropboxapi.com/2/files/get_temporary_link to receive a temporarily link to a media file, the received URL will be like: https://dl.dropboxusercontent.com/apitl/1/..........

 

However, the problem I have is that this URL is setting the content-disposition: attachment Header, making it impossible to stream this content directly via the browser. Something that should be possible according to the documentation.

 

It also differs from the behavior of the old API v1 /media call which is setting the content-disposition: inline; header on the temporarily links (https://dl.dropboxusercontent.com/1/view/....). At that time we were able to change this behavior if needed by manually adding ?dl=1 to this URL.

 

Can you let me know how I can achieve the same behavior with the current API without using shared links?

1 Reply 1

Greg-DB
Dropbox Staff
Thanks for the post! The documentation's reference to streaming the content is referring to streaming it in media players, for example. It isn't intended for displaying in the browser.

There isn't a way to control that unfortunately, but I'll pass this along as a feature request.
Need more support?
Who's talking

Top contributors to this post

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