CodeIgniter Forums

Full Version: code for downloading files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
hi everyone.i just put some links on my web page i am designing which is expected to allow users download files found on my server.To do this i simply put a link to the folder containing the file that can be downloaded.In testing it i discover that only zip files could be downloaded on Mozilla Firefox but not other file formats like PDF.Other browsers did not even download the zip files.
You help will be very useful to me.Thanks.

El Forum

[eluser]zreedeecom[/eluser]
You have to use the proper "Headers" to force the download.

El Forum

[eluser]mi6crazyheart[/eluser]
Download Helper : http://ellislab.com/codeigniter/user-gui...elper.html