CodeIgniter Forums
IE Displaying force_download Output to Screen - 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: IE Displaying force_download Output to Screen (/thread-15689.html)



IE Displaying force_download Output to Screen - El Forum - 02-11-2009

[eluser]ladyj001[/eluser]
I am experimenting with the force_download function of the Download Helper. I am currently trying to implement the example given in the user guide.

$this->load->helper('download');
$data = 'Here is some text!';
$name = 'mytext.txt';
force_download($name, $data);

In FF, the Open/Save dialog box appears as expected. But, in IE7, the output is displayed directly on the screen. There is no Open/Save prompt. What am I doing wrong?


IE Displaying force_download Output to Screen - El Forum - 02-12-2009

[eluser]TheFuzzy0ne[/eluser]
No idea. Try clearing your Temporary Internet files. I doubt it will help, but it might and it's all I can think of.