Loading...
 
Skip to main content

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
(0)
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.user

When 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
  1. Tikiwiki Images In Zip Not Reconized
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+
Demonstrate Bug (older Tiki versions)
Ticket ID
4049
Created
Sunday 13 November, 2011 10:36:11 UTC
by Yannick Charton
LastModif
Saturday 06 July, 2024 10:21:44 UTC


Show PHP error messages