Welcome Guest, Not a member yet? Register   Sign In
File download Problem

header('Content-type: application/jpg');
header("Content-Disposition: attachment; filename=$name");

does not work in codeigniter

[eluser]Rob Gordijn[/eluser]
when using readfile, please lookup the php manual for that function:

"A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename. See the List of Supported Protocols/Wrappers for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide."

cheers! Smile

Theme © iAndrew 2016 - Forum software by © MyBB