CodeIgniter Forums
download problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: download problem (/showthread.php?tid=18880)



download problem - El Forum - 05-21-2009

[eluser]enterpi[/eluser]
i am unable to download doc and docx , xls and xlsx files using codeignetor, is there any solution for this problem

i am able to download the all types of files like pdf , zip files , i am using the download helper .. can u suggest me ....


download problem - El Forum - 05-21-2009

[eluser]Dam1an[/eluser]
Firstly, this is probably the wrong forum for this (Igniter Code -- Use this forum to post plugins, libraries, or other code contributions, or to ask questions about any of them)

Secondly, you're being VERY ambigous with what exactly the problem is


download problem - El Forum - 05-21-2009

[eluser]enterpi[/eluser]
uploaded the .doc,.xls file using code igniter upload function,then by using force_download function the .doc,.xls files are not downloading properly and geting some junk characters


download problem - El Forum - 05-21-2009

[eluser]enterpi[/eluser]
can u suggest me the support portal for CI


download problem - El Forum - 05-21-2009

[eluser]Dam1an[/eluser]
When I said this is the wrong forum, I mean subforum, COde and application development might be a more suitable sub forum for these topics in the future (but there's no point in reposting this in 2 places, as it will split the responses which just makes things confusing)

What are the junk characters? This has come up before, so a quick search might help


download problem - El Forum - 07-16-2009

[eluser]Ruben Müller[/eluser]
I know this is thread is a bit old, but today I had the same problem and I thought I´d share my solution for it.

I´ve attached a custom download helper, it´s the same which ships with CodeIgniter - just a few changes.

Use it like this:
Code:
$this->load->helper('custom_download');
force_download_custom('awesome_file.xlsx', 'path/to/file/file.xlsx' );