cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

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: 

Which API do I use to get a link for embedding on a web page?

Which API do I use to get a link for embedding on a web page?

Seth L.
New member | Level 1

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?

5 Replies 5

Greg-DB
Dropbox 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-DB
Dropbox 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.39
New member | Level 1

I also would like to embed the file request link.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Mark R.39 New member | Level 1
  • User avatar
    Seth L. New member | Level 1
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?