Page 1 of 1
uploading makes filenames lower case :-(
Posted: 18 Jan 2018, 00:29
by rogerco
It seems that when you upload a batch of files using commander then it automatically makes them all lower case. Is it possible to turn this behaviour off? - I use case sensitive files names for various reasons and it is a pain having to rename them after uploading with commander.
RogerCO
Re: uploading makes filenames lower case :-(
Posted: 18 Jan 2018, 19:03
by Jan
Hi, which version of Phoca Commander do you use?
Jan
Re: uploading makes filenames lower case :-(
Posted: 21 Jan 2018, 11:57
by rogerco
Hi Jan,Sorry for delay in replying - I must have turned notifications off - I have v3.03 the latest version from here installed a week ago. Joomla 3.8.3 using php 7.0.27 on Apache 2.4.25.
Roger
Re: uploading makes filenames lower case :-(
Posted: 22 Jan 2018, 16:20
by Jan
Hi, try to open this file:
administrator/components/com_phocacommander/helpers/fileupload.php
line cca 294 and try to change
FROM:
Code: Select all
$filepathImgFinal = JPath::clean($pathFolder.strtolower($file['name']));
TO:
Code: Select all
$filepathImgFinal = JPath::clean($pathFolder.$file['name']);
Let me know if this helped?
Thank you, Jan
Re: uploading makes filenames lower case :-(
Posted: 23 Jan 2018, 00:02
by rogerco
Hi Jan,
Yes that works perfectly (and I could even make the change from within Phoca Commander rather than logging in to cpanel :-) ).
In case some people like the automatic conversion to lower case perhaps you could make it an option if and when you next do an update otherwise the change may get overwritten on update. I'll make a note to myself to check anyway if PhocaCommander is updated.
Many thanks.
RogerCO
PS how do I mark this thread 'Solved'?
Re: uploading makes filenames lower case :-(
Posted: 25 Jan 2018, 16:10
by Jan
Hi, Ok, added to feature request list (I need to do some more tests if this will not break any other feature).
Jan
Re: uploading makes filenames lower case :-(
Posted: 20 Oct 2020, 21:28
by Jan