Version: (using KDE KDE 3.5.1) Installed from: Gentoo Packages This is apparently related to #46557, and maybe even #23143. I'm trying to save the image on this page: http://gallery102249.fotopic.net/p26136236.html But the suggested filename is index.html. The file _does_ contain the actual jpg image, although Konqueror (browsing the folder) doesn't recognize it as such until I change the extension. The HTML image tag on the page is: <img src="http://images2.fotopic.net/?iid=y4js6j&outx=760&quality=70" alt="" class="photo-image"> Firefox (1.5) suggests the filename PICT0051.JPG and so does Opera (8.51).
Probably of duplicate of #126078. kget does not respect Content-Disposition http header.
*** Bug 126078 has been marked as a duplicate of this bug. ***
I think this is KIO FileCopyJob problem, at least in kget situation. This class constructor take dest param witch probably cannot be change. There are two ways to fix that. First, fetch real filename before call FileCopyJob (i.e. do HEAD http request). This metchod reqire major changes in all applications causing problems. The second, write new FileCopyJob2 witch internal make HEAD request and change dest filename to this is set in Content-Disposition header. This can be security hole so KFileDialog can be called from it and user may accept/or not this new name. The best way will be integration this two classes in one (i.e. FileCopyIn or FileDownload) whitch will be fetch Headers, ask user for local filename and make download. This second metchod is more complex but also more universal and IMHO better.
Konqueror 3.5.7 on Kubuntu suggests the correct file name. Either the website has changed (doubtfull) or Konqueror has. This bug should probably be closed.
Konqueror seems to be working, but Bug 126078 still exists - can we sever that relationship, closing this one, and reopening that one?
Testing kget directly in kde 4.1, it's even worse now. I get "invalid directory" (I'm saving to my home directory), and the suggested filename is, well, just my home directory (no file name - just directory name). Oh, and konqueror is suggesting "index.html" as the file name again.
Konqueror 3.5.9 suggests the correct filename.
KDE 4.4.5 - without kget integration: it saves the JPG correctly - with kget integration: kget asks for save .html (this is a known bug)
Konqueror 3.5.10 gets the file name right, so that's good. However, other links and websites (eg. Demonoid) still cause problems.
@Niels: Konqueror 3.5.10 is no more developed and maintained, so if you have found other problems in different websites, please check them with KDE 4 (4.4 o 4.5) and report them on a new bug report. Thanks for the collaboration! :-)