I have an application that allows a user to create PDF documents and then stores them on the server, outside of the root. When a user wishes to view the document it is retrieved and embedded into a web page. This works great so long as the user has Acrobat configured to open PDF's in the browser rather than download to their location. However, if they don't they are left with a nasty little red cross in the top left of the browser window. I'd like to remove the inconsistency and am thinking of just making the documents available to download rather than view in the browser.
Has anyone any experience of doing this and have any tips for doing it the best possible way from a user perspective? Will the fact that the files are stored outside of the root have an impact? Will i have to move them somewhere else inside the root temporarily so that they can be downloaded via a link? I'm using PHP. Any help and knowledge gratefully accepted.
Has anyone any experience of doing this and have any tips for doing it the best possible way from a user perspective? Will the fact that the files are stored outside of the root have an impact? Will i have to move them somewhere else inside the root temporarily so that they can be downloaded via a link? I'm using PHP. Any help and knowledge gratefully accepted.
