aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/Images_detected_as_application__47__octet-stream__44___not_image__47____42__.mdwn
blob: f3baaac9997f0a48e0489b6aa44b0b2dbc0923a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Steps to reproduce:

 * Running ikiwiki version 3.20130904.1ubuntu1 on Ubuntu 14.04 LTS
 * Also installed `perlmagick` and `libxml-writer-perl`
 * Enable attachment plugin
 * Set attachment rule to `mimetype(image/*)`
 * Attempt to attach an image (e.g. downloaded version of https://commons.wikimedia.org/wiki/Category:Lolcats#/media/File:You_gotz_a_lolcat.jpg )

What should happen:

 * Attachment is uploaded

What happens instead:

 * Error message: `prohibited by allowed_attachments (file MIME type is application/octet-stream, not image/*)`

Workaround:

 * Change attachment rule to `mimetype(image/*) or application/octet-stream`

Other notes:

 * Downloading and uploading from a Windows machine via Firefox