File type detection does not work when uploading images bundled in a zip file
- Status
- Closed
- Subject
- File type detection does not work when uploading images bundled in a zip file
- Version
- 7.x
8.x - Category
- Usability
- Feature
- File Gallery (elFinder or standard UI)
- Resolution status
- Fixed or Solved
- Submitted by
- Yannick Charton
- Volunteered to solve
- cdrwhite
- Lastmod by
- cdrwhite
- Rating
- Related-to
- Description
Hi,
Reporting this bug, which is apparently still present.
Other users are facing that issue: http://blog.gmane.org/gmane.comp.cms.tiki.userWhen uploading a bundle of images contained in a zip file, and selecting the option "Unzip zip files", all the images are well extracted and added to the gallery. However, the file type (in my case png, but I guess this is the case for all file types) is not reconize and the files have the type "application/octet-stream". Consequently, inserting the image in a wiki document for exemple, and changing its size, will produce the message "File is not an image"
I was able to reproduce it on tiki 7.2. Attached some screenshots of the problem.
Yannick
- Files
- Solution
r40079 introduces a new feature for file_gallery to modify the mime type of images (and pdf) based on file extensions. There is a preference on the file gallery admin page to activate this function. It will replace application/octet-stream with
- image/jpeg in case of a file suffix .jpg/.jpeg
- image/png for .png
- image/gif for .gif
- image/tiff for .tif or .tiff
- application/pdf for .pdf
- Importance
- 7
- Priority
- 35
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4049
- Created
- Sunday 13 November, 2011 10:36:11 UTC
by Yannick Charton - LastModif
- Saturday 06 July, 2024 10:21:44 UTC