We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
De L.1
9 years agoCollaborator | Level 9
/get_temporary_link URL is always setting content-disposition: attachment Header
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
- Greg-DB9 years ago
Dropbox Community Moderator
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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,036 PostsLatest Activity: 9 months ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!