uploading makes filenames lower case :-(

Phoca Commander - dual panel file manager for Joomla! CMS
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

uploading makes filenames lower case :-(

Post 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

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: uploading makes filenames lower case :-(

Post by Jan »

Hi, which version of Phoca Commander do you use?

Jan
If you find Phoca extensions useful, please support the project
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

Re: uploading makes filenames lower case :-(

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: uploading makes filenames lower case :-(

Post 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
If you find Phoca extensions useful, please support the project
rogerco
Phoca Member
Phoca Member
Posts: 47
Joined: 18 Sep 2011, 16:17

Re: uploading makes filenames lower case :-(

Post 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'?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: uploading makes filenames lower case :-(

Post 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
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: uploading makes filenames lower case :-(

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply