|
Posted by Toby A Inkster on 03/13/07 18:04
jodleren wrote:
> Toby A Inkster <usenet200...@tobyinkster.co.uk> wrote:
>
>> Google: HTTP Content-Disposition header
>
> You could be a little more specific...
> I found something
Firstly, I was clearly sufficiently specific, in that it lead you to an
answer.
Secondly, I couldn't be very much more specific than I was, as you didn't
mention any details of your hosting situation in your original post.
(Operating system, server software, scripting languages, level of access,
etc.)
> and came up with:
[...]
> header('Content-type: application/force-download');
Replace that line with a real content type. For example, if the file is a
PDF, then the Content-Type should be "application/pdf". If it's a JPEG,
then "image/jpeg". If you are really unable to determine the correct
content type, use "application/octet-stream".
Using made-up content types like the one you've used above may seem to be
"convenient", but it harms the web as a whole.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux
* = I'm getting there!
Navigation:
[Reply to this message]
|