|
Posted by Michael Fesser on 01/13/07 17:04
..oO(J.O. Aho)
>Graham Stow wrote:
>> I have set up a 'downloads' directory on a website, but when I fire up the
>> browser and click on the files in it, they open within the browser itself.
>> How do I get the 'File Download - Do you want to open or save this file?'
>> dialog window to pop up, giving the user the choice of running the file or
>> saving it? I've fiddled around with the permissions of both the directory
>> and the files themselves, but can't find a setting that works - either the
>> user's permission is denied or the file opens in the browser.
>
>Some browsers are broken and need a false mime-type to download a file
Huh? Every browser allows to download files. It's just broken scripts
that try to "force" downloads where you have to use a false mime type
or the generic application/octet-stream.
>, so you
>need to fiddle with the mime-types on the server, so it sends the "right" type
>depending on what file you are serving.
Files should be sent with the correct mime type, so it's left up to the
user/browser to decide what to do with them.
Micha
Navigation:
[Reply to this message]
|