Description

Attachment is not shown as intended

Steps to reproduce

This Wiki

Goto MoinMoinRelease1.5/CHANGES

and try to read Changes in 1.5

happens with IE 7 and Firefox 2

Page looks like this :

CHANGES

For older CHANGES, see MoinMoinRelease1.3/CHANGES.

Example

in MoinMoinRelease1.5/CHANGES

{{attachment:CHANGES}}

Component selection

Details

MoinMoin Version

1.6

OS and Version

Python Version

Server Setup

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Rename text files to *.txt, so the mimetypes.guess_type() works.

Discussion

mimetype of a file without extension is not recognized. We could load that file into the page. Or we should ask magic about the mimetype for files without extension

   1 import magic
   2 mime_info = magic.open(magic.MAGIC_MIME)
   3 mime_info.load()
   4 print mime_info.file('CHANGES')

text/plain; charset=us-ascii

Plan


CategoryMoinMoinBug CategoryForMoin2

MoinMoin: MoinMoinBugs/1.6AttachmentNotDisplayed (last edited 2011-01-17 23:56:33 by EugeneSyromyatnikov)