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 )
11 * Attachment is uploaded
15 * Error message: `prohibited by allowed_attachments (file MIME type is application/octet-stream, not image/*)`
19 * Change attachment rule to `mimetype(image/*) or application/octet-stream`
23 * Downloading and uploading from a Windows machine via Firefox
27 > File type detection relies on some of the external packages in ikiwiki's Suggests list.
29 > Do you have [[!ubupkg file]] installed?
31 > Do you have [[!ubupkg libfile-mimeinfo-perl]] installed?
35 > Yup, we have both of those installed. -- [[David Rix]]
37 >> This is probably the same thing as
38 >> [[bugs/can't upload a simple png image: prohibited by allowed__95__attachments (file MIME type is application__47__octet-stream...]]
39 >> which was [[fixed in 2014|done]]. You could open a bug on Launchpad, but
40 >> since ikiwiki is in Ubuntu `universe`, it will probably never receive bug fixes.
42 >> I would suggest either upgrading to a version of ikiwiki from a newer Debian or
43 >> Ubuntu suite (I'm using the latest release 3.20160121 myself), or applying
44 >> [the patch](http://source.ikiwiki.branchable.com/?p=source.git;a=commitdiff;h=77a2267dcfb103b63a675e4a2226076166b29d3f)
45 >> manually. --[[smcv]]
47 >>> Thanks so much for digging into that! There's a new LTS around the corner with a [newer (post 2014) version of ikiwiki](http://packages.ubuntu.com/xenial/ikiwiki) so we can probably afford to wait and/or switch to a self-managed packaged. -- [[David Rix]]