HTTP_download : open file in browser, not download
| From: | Vincent DUPONT | Date: | Tue, 01 Jun 2004 09:39:27 +0000 |
| Subject: | HTTP_download : open file in browser, not download | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-12807@lists.php.net to get a copy of this message | ||
Hi,
I cannot send the files directly to the browser without having a popup requesting the user to
selected either to open or to download the file;
I run PHP 4.3.4 on a IIS web server (Windows)
The browser is IE 6.
I tried to change the download parameter
$dl = & new HTTP_Download();
$dl->setContentDisposition(HTTP_DOWNLOAD_ATTACHMENT);
to
$dl = & new HTTP_Download();
$dl->setContentDisposition(HTTP_DOWNLOAD_INLINE);
But this did not change the behaviour
do you have any idea?
I cannot use a simple href link because the file to open is not directly accessible through the web.
This is why I need HTTP_download script.
Thank you,
Vincent Dupont