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.
- Correct. For that feature, you need to store the mime-type. This is not done yet, though.
Plan
- Priority: Medium
Assigned to: ThomasWaldmann
- Status: Confirmed. Remove mimetype form field for 1.3.2. In 1.4 we will have real mimetype support.