cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

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

New member | Level 1
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
Highlighted

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

Dropboxer
Dropboxer

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.

Highlighted

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

New member | Level 1
New member | Level 1

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

Highlighted

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

Dropboxer
Dropboxer

Shared links (modified for direct access) also give the same Content-Disposition unfortunately.

Highlighted

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

New member | Level 1
New member | Level 1

Please do add as a feature request. Thank you.

Highlighted

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

New member | Level 1
New member | Level 1

I also would like to embed the file request link.

Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?