Showing results for 
Search instead for 
Did you mean: 
Discover new ways to use Dropbox or share your tips with other users like you. Get involved

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

Helpful | Level 5

When doing a call to to receive a temporarily link to a media file, the received URL will be like:


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 ( 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

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

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.
API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post