Description

If you attach a .po file to a page, and give it MIME type text/plain, an .conf extension is added to the file.

Example:

File name: fr.po MIME type: text/plain

-> The file is attached without problem but its name is: fr.po.conf

Originally reported by Jean-Philippe Guérard on SF bug tracker.

Details

This wiki.

Workaround

Do not override the MIME type.

Discussion

You cannot even overwrite the name.

Attachments will go away in 1.4 and mimetype handling will be completly different. So this is very unlikely to be fixed.

Of course, it is a bug. And it is not relevant for 1.4. But that does not mean that it should not be fixed in 1.3. I guess that there is just a short necessary change.

Its a bug and should be fixed, probably by removing the stupid mime type field from the form. -- NirSoffer 2005-01-05 19:38:28

Actually, moin should never try to add extensions to files. This is stupid. The purpose of the mimetype field is to associate a mime-type to the file regardless of the extension so that the web-server can serve up the file with the appropriate type. This kind of strong linking of filename extensions to the file's type was never a good idea and never will be.

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/AttachFileAddsStupidExtensions (last edited 2007-10-29 19:13:29 by localhost)