How to view pdf's stored in spaces without them being downloaded
I have an application that should allow people to view pdf files stored in digital ocean spaces on the browser. However, when I direct them to the url for the pdf documents, instead of them being displayed on the browser, they get downloaded onto the user’s computer. I tried creating a page for them in html and making a IFrame to comtain the pdf but that doesn’t work, they still get downloaded.I don’t have this problem with pictures though. It would be useful for me to be able to get it to be displayed on the browser, how can I do this without it being downloaded, thank you.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×