Posted by aksharmavoice on 06/08/07 07:41
I made a script to download a file. when it is executed the IE ask to
open or save the file.
If I first save then open file get open. But in case I click on open
file without saving my disk it show a problem that "Can not find
temporay file".
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header ("Content-Length: " . filesize($file_full_path));
header ("Content-Disposition: attachment; filename=".
$fileData['fld_fileName']);
header("Content-Transfer-Encoding: binary");
readfile($file_full_path);
Can any help.
[Back to original message]
|