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.'s avatar
Seth L.
New member | Level 1
9 years ago

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-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox 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.'s avatar
    Seth L.
    New member | Level 1

    Whoa, that's a huge showstopper. Can I create a "shared link" of some kind that will work?

  • Seth L.'s avatar
    Seth L.
    New member | Level 1

    Please do add as a feature request. Thank you.

About Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 3 hours ago
323 Following

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!