Loading...
 
Skip to main content

Files; Values in Maximum width / height of images for a file gallery can to chain of errors and corrupt image files

Status
Open
Subject
Files; Values in Maximum width / height of images for a file gallery can to chain of errors and corrupt image files
Version
20.x
24.x
25.x
26.x
Category
  • Error
Feature
File Gallery (elFinder or standard UI)
Resolution status
Confirmed
Submitted by
Bernard Sfez / Tiki Specialist
Lastmod by
Bernard Sfez / Tiki Specialist
Rating
(0)
Description

Still here on Tiki25 and Tiki26.
If you save a value for the "image_max_size_x" and "image_max_size_y" you can't use the upload modal dialog of the tracker field "file" to upload a file attached to a trackeritem.

I had to reset the values manually in the database and then go the "edit" action of the file gallery and (re)save it. Trying to change the values from the HTML interface directly ended with a WSOD



I've seen that happen again on a Tiki24.

It appears that if you fill ONLY one ends of the height or the width parameter when you upload a new file Tiki will get confused and in result the file will be corrupted.

Tiki should be able to resize using one end only. (max width or max height) and adapt OR we should force saving both parameters


On a Tiki 20

Setting only Maximum height of images in gallery in a gallery leads to a chain of incoherence and errors.

Image

I tried to set a value for width but it turned to be worst and uploaded files are corrupted and turned into .txt files.

Image
Image
Image

Workaround
Only reseting back values to 0 (unlimited) solve issues and problems.
Importance
7
Easy to solve?
8
Priority
56
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7100
Created
Friday 21 June, 2019 07:38:55 UTC
by Bernard Sfez / Tiki Specialist
LastModif
Sunday 16 July, 2023 10:39:55 UTC


Show PHP error messages