Bugs :  K-Meleon Web Browser Forum
You can talk about issues with k-meleon here.  
Downloading files ignores Content-Disposition
Posted by: Philip X
Date: November 29, 2001 06:07PM

Hi,

This is a bug of whomever handles the downloading of files (not htmls). If it's the Gecko engine, I appologize; if not, here's the bug.

I have a download.php file that upon requesting sends a file depending on the parameters passed. K-Meleon seems to ignore the Content-Disposition: filename="x.doc" header when it suggests (thru the Save file dialog) a file name. It instead suggests download.php.

If I right click on the link leading to download.php and choose Save link as, the name is the download.php?id=3... and whatever follows.

It would be nice if in both situations, the download window would wait and take these headers into account.
Here are some of the headers I set before sending the file:
header("Content-Disposition: filename=\"$filename\"");
header("Content-Type: $mimeType");
header("Content-Length: ". filesize("$fspath"));

If it's of any importance, IExploder behaves correctly.

thank you,
philip

Options: ReplyQuote


K-Meleon forum is powered by Phorum.