179 Posts
carin
7 years ago
5
Topic

How can I force the image upload field to turn all letters in the file name including the file extension to lower case before saving? Currently .JPG does not get changed to .jpg.

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
4
Level 1

You would need to modify upload field for that, file name does get filtered but upper case letters are valid characters so they won't be replaced by default.

179 Posts
carin
7 years ago
2
Level 2

If upper case letters are valid characters why are you filtering upper case letters from the file name? ... (but not from the extension)

4229 Posts
Kadministrator
7 years ago
1
Level 3

File ending is just matched against a list of known file endings. Why does upper-case file name represent a problem?

179 Posts
carin
7 years ago
0
Level 4

... because it changes an alphabetically sorted list

548 Posts
joomleb
6 years ago
0
Level 2

Hi Klas,

sorry, I'm a little bit confused here, if "...upper case letters are valid characters so they won't be replaced by default...", Why uploading a "MyName.pdf" file is uploaded as "myname.pdf" ?

Please, What am I missing ?

Get a VIP membership