]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/Images_detected_as_application__47__octet-stream__44___not_image__47____42__.mdwn
additional packages required
[git.ikiwiki.info.git] / doc / bugs / Images_detected_as_application__47__octet-stream__44___not_image__47____42__.mdwn
1 Steps to reproduce:
3  * Running ikiwiki version 3.20130904.1ubuntu1 on Ubuntu 14.04 LTS
4  * Also installed `perlmagick` and `libxml-writer-perl`
5  * Enable attachment plugin
6  * Set attachment rule to `mimetype(image/*)`
7  * Attempt to attach an image (e.g. downloaded version of https://commons.wikimedia.org/wiki/Category:Lolcats#/media/File:You_gotz_a_lolcat.jpg )
9 What should happen:
11  * Attachment is uploaded
13 What happens instead:
15  * Error message: `prohibited by allowed_attachments (file MIME type is application/octet-stream, not image/*)`
17 Workaround:
19  * Change attachment rule to `mimetype(image/*) or application/octet-stream`
21 Other notes:
23  * Downloading and uploading from a Windows machine via Firefox
25 ---
27 > File type detection relies on some of the external packages in ikiwiki's Suggests list.
28 >
29 > Do you have [[!debpkg file]] installed?
30 >
31 > Do you have [[!debpkg libfile-mimeinfo-perl]] installed?
32 >
33 > --[[smcv]]