I am tasked with creating a document management system that our customers and vendors use to view details pertaining to each transaction. Each transaction contains several files (usually pdf and images, but sometimes word, excel, powerpoint) that I need for them to be able to preview in the web browser. The rest of the system is basically complete.
Since the transactions are confidential, there is a login system and uploaded files are stored outside of the webroot (stored and accessed via php).
The Question: When a user views a transaction and clicks on a related document, I need for them to be able to preview it in the browser. Since the documents are outside of the web server root, this will likely need to be done with PHP and be as secure as the session based login system. Any ideas on how to work the preview? Even if only for pdf's? Image files are not my concern right now as I already have a lightbox script that should adapt nicely to files served up with PHP.
Preferably, users on iPhone/iPad as well as Mac/PC should be able to view these files.
I'm familiar enough with php, javascript/jquery, and html to comfortably use these. All suggestions are welcome though.
Since the transactions are confidential, there is a login system and uploaded files are stored outside of the webroot (stored and accessed via php).
The Question: When a user views a transaction and clicks on a related document, I need for them to be able to preview it in the browser. Since the documents are outside of the web server root, this will likely need to be done with PHP and be as secure as the session based login system. Any ideas on how to work the preview? Even if only for pdf's? Image files are not my concern right now as I already have a lightbox script that should adapt nicely to files served up with PHP.
Preferably, users on iPhone/iPad as well as Mac/PC should be able to view these files.
I'm familiar enough with php, javascript/jquery, and html to comfortably use these. All suggestions are welcome though.