cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want to hear from you. What do you use Dropbox for?
Close

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: 
Highlighted

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

Helpful | Level 6

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
Highlighted

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

Dropboxer
Dropboxer
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.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?