Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I'm using the API to make PDF files available on a web site. However, the get_temporary_link endpoint returns a Content-Disposition header creating an attachment, which <embed> tags don't like.
How do I get a direct URL to the PDF file--not as an attachment and not embedded in the Dropbox viewer?
Hi Seth, unfortunately there isn't another way to get a different kind of link that would work for that, or a way to control the Content-Disposition on these links, so I'm afraid I don't have a good solution for you. I'll send this along as a feature request though.
Whoa, that's a huge showstopper. Can I create a "shared link" of some kind that will work?
Shared links (modified for direct access) also give the same Content-Disposition unfortunately.
Please do add as a feature request. Thank you.
I also would like to embed the file request link.
Hi there!
If you need more help you can view your support options (expected response time for a 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!