[11.x] storage calculation error, JPG files considered as "other" #1177

Closed
opened 2026-10-05 00:34:35 +02:00 by adam · 1 comment
Owner

while they should be "photo". The check on extension should be case insensitive.

while they should be "photo". The check on extension should be case insensitive. <!-- github-sync-id:819852794 -->
adam closed this issue 2026-10-05 00:34:35 +02:00
Author
Owner

I already wondered about my massive Other..
Fwiw, this in admin/intro.php works fine for me
$ext = strtolower($tabString[count($tabString) -1]);
but faster would be a copy of $conf['picture_ext'] completed with upper case variants to search $ext in.
(mixed case like Jpg or jPG probably can be ignored..).

I already wondered about my massive Other.. Fwiw, this in admin/intro.php works fine for me ` $ext = strtolower($tabString[count($tabString) -1]);` but faster would be a copy of $conf['picture_ext'] completed with upper case variants to search $ext in. (mixed case like Jpg or jPG probably *can* be ignored..). <!-- github-comment-id:790000181 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1177