When uploading files in the file gallery (XXX.JPG) with uppercase filenames they will be detected as application/octet-stream (XAMPP on Windows 7).
Instead they should be recognized as jpeg.
Proposed patch (i.e. convert extension to lower case before testing for mime type).
--- mimelib-ori.php 2013-12-07 13:07:10.000000000 +0100 +++ mimelib.php 2013-12-07 13:08:07.000000000 +0100 @@ -101,7 +101,7 @@ global $mimetypes; include_once('lib/mime/mimetypes.php'); if (isset($mimetypes)) { - $ext = $this->get_extension($filename); + $ext = strtolower($this->get_extension($filename)); $mimetype = isset($mimetypes[$ext]) ? $mimetypes[$ext] : ''; if (!empty($mimetype)) {
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |