Bug #26972

File extension of resources must be lower cased

Added by Bastian Waidelich over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
Resource
Target version:
-
Start date:
2011-05-21
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

When uploading a resource with upper case characters in the file extension (for instance "SomeFile.JPG") the saved persistent resource will be saved with a lower cased file extension ("<hash>.jpg"). This is correct, because it avoids clashes for two files with the same content (= same hash).
Resource::getFileExtension() already returns the lowercased extension, Resource::getFilename() does not yet.


Related issues

Related to Conference Management - Bug #26965: Speaker profile: Image not foundResolvedBastian Waidelich2011-05-21

Actions

Also available in: Atom PDF