Jump to content

File hidding/ restciting download


manuphpfreak

Recommended Posts

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

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-

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.