Firefox will try to download an attached file as the topic name when trying to download a file from TWiki. For example, say I have a topic named MyTopic
and an attachment named picture.jpg. If you right click the attachment in Firefox and select "Save link as" the save dialogue will appear but the file will be named MyTopic
.htm. You can either rename the file in the download dialogue before downloading or rename the file on the local computer after it is downloaded. I can re-create the problem on my Intranet wiki as well as twiki.org. Using Firefox go to http://twiki.org/cgi-bin/view/TWiki/ATasteOfTWiki
and download any of the attachments using the "Save link as" context menu item.
What actually appears to be happening is that there is an error during the process of composing the response. This causes a redirect to an oops page, which is of an text/html mime type, which is why you get the wierd download.
After some research it looks as if some MIME types cause CGI to crash in mysterious ways. When I print my own HTTP headers instead of using CGI, it works as expected.