Summary: | Dynamically generated download downloading as download.php | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Alan Prescott <alanjprescott> |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Eample PHP script which generates the error |
Description
Alan Prescott
2006-04-03 10:11:45 UTC
Can't confirm: Suggested filename here is blobAndConquer-0.1-1.tar.gz I cannot reproduce either. The HTTP headers contain: kio_http: (14248) "Content-disposition: filename=blobAndConquer-0.1-1.tar.gz" which should cause it to offer that suggestion. KDE 3.5.2 r522440 I've run this on 2 different machines both SuSE 10.0, KDE 3.5.2, one as i386 and the other as x86_64 architecture and both give this same bug. In each case the Save as window correctly shows the filename blobAndConquer-0.1-1.tar.gz but if I click on Save As it is named download.php for the save. Is there some setting of konqueror or KDE that may be out on my implementations? You should be more precice. RMB -> save link as -> download.php But if you click that links and choose save as -> blobAndConquer-0.1-1.tar.gz I've feeling that this is a dupe, but no time to hunt it. Ok - to be precise ... LMB produces SaveAs window showing filename blobAndConquer-0.1-1.tar.gz but then saves the file as download.php. RMB popup menu offers ... Save Link As - runs the download through kget offering to save as download.php which it does unless I override the filename. Copy To - saves file as download.php I did look for a duplicate bug before reporting this but I couldn't find one. Do you need any more information about my system? Created attachment 15515 [details] Eample PHP script which generates the error As a follow-on... I'm including a PHP script called download.php which follows the same behaviour Install it in a test web host with a text file called testfile.txt Under konqueror, accessing the URL http://my_test_host_url/download.php brings up the SaveAs dialogue showing Open 'http://my_test_host_url/download.php'? Name: generated.txt Type: Plain Text Document Clicking on SaveAs saves the file as download.php. If you access the same URL with Firefox it saves the file as generated.txt. It wouldn't surprise me if my HTML headers are incorrect - I spent a fair amount of time surfing around to find out how to do this (download a generated file that) and just copied bits from suggested PHP scripts. My contention is that, if this works with Firefox and IE, it ought to work with Konqueror. *** This bug has been marked as a duplicate of 57590 *** On Saturday 08 April 2006 15:28, Tommi Tervo wrote: [bugs.kde.org quoted mail] Thanks Sorry I didn't spot the duplicate (kio_http instead of konqueror) Alan |