Download Helper issues - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Download Helper issues (/showthread.php?tid=26948) |
Download Helper issues - El Forum - 01-27-2010 [eluser]quibstar[/eluser] Having issues with down loading videos. Here is my code: Code: function download() Download Helper issues - El Forum - 01-27-2010 [eluser]pistolPete[/eluser] Enable error displaying and post the error you get: Code: error_reporting(E_ALL); Download Helper issues - El Forum - 01-27-2010 [eluser]quibstar[/eluser] Tried this and I still got a blank page? strange? Download Helper issues - El Forum - 05-28-2011 [eluser]Unknown[/eluser] You are getting the black screen because in the $name var you are not specifing the file extension of the file Do like this $data = file_get_contents(BASEPATH."uploads\\4CGcjsVs\\454A5d01.pdf"); //echo $data; $name="ggg.pdf"; echo force_download($name, $data); |