CodeIgniter Forums
code for downloading files - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: code for downloading files (/thread-33330.html)



code for downloading files - El Forum - 08-23-2010

[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.


code for downloading files - El Forum - 08-23-2010

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


code for downloading files - El Forum - 08-23-2010

[eluser]mi6crazyheart[/eluser]
Download Helper : http://ellislab.com/codeigniter/user-guide/helpers/download_helper.html