Forum Moderators: coopster
The page address is of the form: [example.net...]
and the following headers are sent:
header("Content-Disposition: attachment; filename=\"$filename\"");
header("Content-Length: $filesize");
header("Content-Type: $filetype");
readfile($file);
exit(0); The problem (for one of our clients) is that this always forces a download prompt. I tried adding:
header("Cache-Control: public, no-cache"); but it had no effect.
Anyone?
I got the idea for removing the "Content-Disposition" header by using the Live HTTP headers extension for Firefox and loading up a PDF file from my website which displayed in the browser window. The server did not send a "Content-Disposition" header.
I got the idea for changing the "Content-Disposition" header from "attachment" to "inline" from RFC 2183.
Hope this helps,
Elijah