We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Seth L.
9 years agoNew member | Level 1
Which API do I use to get a link for embedding on a web page?
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?
- Greg-DBDropbox Staff
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.
- Seth L.New member | Level 1
Whoa, that's a huge showstopper. Can I create a "shared link" of some kind that will work?
- Greg-DBDropbox Staff
Shared links (modified for direct access) also give the same Content-Disposition unfortunately.
- Seth L.New member | Level 1
Please do add as a feature request. Thank you.
- Mark R.39New member | Level 1
I also would like to embed the file request link.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 3 hours agoIf 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!