Re: How do I open Save As Dialog Box?
| From: | Daniel Schierbeck | Date: | Mon, 23 Aug 2004 15:35:01 +0000 |
| Subject: | Re: How do I open Save As Dialog Box? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194478@lists.php.net to get a copy of this message | ||
Php Junkie wrote:
Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on the Download Button... The Save As Dialog Box should appear... What is happening right now is that the file opens in it's related software (Word, Acrobat, Notepad etcetera). I don't want the file to open in it's native software. I know I need to use the header ("Content-type: application/octet-stream"); But I don't know how. Can anyone help? Thanks. Try using header("Content-type: application/force-download")