The Content-Type header changes, when uploading, you can get it from
$HTTP_POST_FILES['userfile']['type'], also set the filename using
header("Content-Disposition: attachment; filename='. $filename );
Christian Ista wrote:
>>You'll need to prompt the download by sending the appropriate heade
> You'll need to prompt the download by sending the appropriate headers.
> Something like..
>
> http://www.mydomain.com/downloadmyfile.php>Download
>
> header("Content-Type: application/zip");
> header("Content-Disposition: attachment");
> readfile("file.zip");
> ?>
It's not only .zip file but
Christian,
You'll need to prompt the download by sending the appropriate headers.
Something like..
http://www.mydomain.com/downloadmyfile.php>Download
This is untested but from my experience it should work.
Good luck,
Kevin
- Original Message -
From: "Christian Ista" <[EMAIL PROTECT
3 matches
Mail list logo