manuphpfreak Posted April 13, 2010 Share Posted April 13, 2010 Hi, I am looking for a solutions to my requirement as under - I have a web based application written in PHP, MYSQL. Through this application I am uploading 2 different formats of files namely - Images (all image format), Doc (All document format like pdf, doc, xls, txt, rtf). When I revtieve the result I can rander the images files uploaded on the browser window, but for doc it gets downloaded. I want a container to render all sort of files I upload. Thank you Manu (growthtechnosoft.com) Link to comment https://forums.phpfreaks.com/topic/198361-file-hidding-restciting-download/ Share on other sites More sharing options...
ChemicalBliss Posted April 13, 2010 Share Posted April 13, 2010 Hmm, unless your rediculously advanced in php/css/html you wont be able to create a "container" for word and pdf documents solely through php and javascript. The best you can do is turn it into HTML, and then display it, just search "PHP DOC to HTML" etc. The only way to display a file directly in0browser as-is, is with plugins/addons and other extensions that modern browsers offer, like shockwave flash is an example. -CB- Link to comment https://forums.phpfreaks.com/topic/198361-file-hidding-restciting-download/#findComment-1040871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.