upload form, no cache for file with representative picture #857

Closed
opened 2026-10-05 00:21:02 +02:00 by adam · 0 comments
Owner

At the end of function add_uploaded_file (file admin/include/functions_upload.inc.php) we force generation of the thumbnail. It can't work for a PDF file (or any file using a representative picture), because we don't provide therepresentative_ext to Derivatives manager. We should provide it.

By the way, it would be smarter to force generation on the Medium size. Then the upload form will HTTP request the thumbnail, which Piwigo will generate from the Medium.

At the end of function `add_uploaded_file` (file `admin/include/functions_upload.inc.php`) we force generation of the thumbnail. It can't work for a PDF file (or any file using a representative picture), because we don't provide the`representative_ext` to Derivatives manager. We should provide it. By the way, it would be smarter to force generation on the Medium size. Then the upload form will HTTP request the thumbnail, which Piwigo will generate from the Medium. <!-- github-sync-id:409835035 -->
adam closed this issue 2026-10-05 00:21:02 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#857