[EP-tech] case-sensitiv File-extensions-query

Stenger, Avischai avischai.stenger at ulb.tu-darmstadt.de
Fri Oct 30 14:59:32 GMT 2020


CAUTION: This e-mail originated outside the University of Southampton.

Hi,

i am wondering why ist the extensions-test in lib/cfg.d/media_info.pl case-sensitive,

( $filename =~ /\.(pdf|doc|docx|odt)$/ ) etc.

and not like:

( $filename =~ /\.(pdf|doc|docx|odt)$/i ) etc.


we get files with both extensions, [NAME].pdf and [NAME].PDF and now they are marked as in different Format.


[NAME].pdf will be format=Text
but
[NAME].PDF will be format=Other

is it accidentally or dose it have a reason that i don’t recognise?


Tanks & have a great weekend


Avi







More information about the Eprints-tech mailing list