You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
lportzline
3 years agoHelpful | Level 5
Open PDF in browser
When I share a link to a PDF, how can I get the PDF to open directly in someone's browser without requiring them to download the file to their hard drive? Thanks.
- 3 years ago
lportzline wrote:
As you suggested, I've tried the dl=1 and raw=1 parameters with people both inside and outside of my organization, and they're still being taken to a page that wants to make them download the file rather than opening it directly.
Using ?dl=1 will force the file to download so you don't want that one. The default, or ?dl=0, will preview the file on the Dropbox website. So it will stay in the browser, but it will have the Dropbox interface around the PDF. Using ?raw=1 just sends the raw file to the browser and the browser determines how to handle it.
That link opens the PDF file directly in a browser if the browser knows how to handle a PDF file and it's set to open them directly, instead of handing them off to another application or just downloading it. Those settings are in the browser and not part of Dropbox.
Rich
Super User II
lportzline wrote:
When I share a link to a PDF, how can I get the PDF to open directly in someone's browser without requiring them to download the file to their hard drive?
That's mostly dependent on how they have their browser configured. You can provide a link that either previews on the Dropbox website, forces a download or just sends the raw file to their browser. Assuming you also want to avoid sending them to the Dropbox website to view it, sending the raw file is likely want you'd want in this case, but it will still depend on how they have their browser configured to handle PDF files.
lportzline
3 years agoHelpful | Level 5
Thanks. As you suggested, I've tried the dl=1 and raw=1 parameters with people both inside and outside of my organization, and they're still being taken to a page that wants to make them download the file rather than opening it directly. Weird.
- Rich3 years agoSuper User II
lportzline wrote:
As you suggested, I've tried the dl=1 and raw=1 parameters with people both inside and outside of my organization, and they're still being taken to a page that wants to make them download the file rather than opening it directly.
Using ?dl=1 will force the file to download so you don't want that one. The default, or ?dl=0, will preview the file on the Dropbox website. So it will stay in the browser, but it will have the Dropbox interface around the PDF. Using ?raw=1 just sends the raw file to the browser and the browser determines how to handle it.
That link opens the PDF file directly in a browser if the browser knows how to handle a PDF file and it's set to open them directly, instead of handing them off to another application or just downloading it. Those settings are in the browser and not part of Dropbox.
- lportzline3 years agoHelpful | Level 5
Thanks very much for the input & advice!
- Catrik3 years agoExplorer | Level 4
>Using ?raw=1 just sends the raw file to the browser and the browser determines how to handle it.
Is there an option to make all files in dropbox behave like this? We have a user hosting multiple pdf's, and they do not work correctly on the dropbox pdf viewer. There are too many files to edit the link by hand every time, and too many users to instruct everyone to download it first or mess with settings on their end.
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
Need more support
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!