some RAW files incrrectly considered as TIFF files #1548

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

I have encountered some unexpected detection of file type in admin/include/functions_upload.inc.php

    elseif (IMAGETYPE_TIFF_MM == $type or IMAGETYPE_TIFF_II == $type)
    {
      $is_tiff = true;
      $file_path.= 'tif';
    }

This piece of code tells Piwigo it's a TIFF file, while it's not.

I have encountered some unexpected detection of file type in `admin/include/functions_upload.inc.php` ``` elseif (IMAGETYPE_TIFF_MM == $type or IMAGETYPE_TIFF_II == $type) { $is_tiff = true; $file_path.= 'tif'; } ``` This piece of code tells Piwigo it's a TIFF file, while it's not. <!-- github-sync-id:1428285250 -->
adam closed this issue 2026-10-05 00:48: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#1548