Gossamer Forum
Home : Products : Others : Fileman :

Changing allowed names for folders and files

Quote Reply
Changing allowed names for folders and files
I would like to modify the codes used for valid file names to only allow lower case names. Can someone point me in the right direction (to be read file name) to do this? I can't seem to find it in the latest released v2.

BTW - this is another truly great product.

Thanks,

Phil
Quote Reply
Re: [scimone] Changing allowed names for folders and files In reply to
Hi,

Just change the _valid_name_check subroutine in Commands.pm, It should look like:
.....
if (!$name) { $output = "<font color=red><b>Please provide a valid name.</b></font>"; }
elsif ($#name > 0) { $output = "<font color=red><b>Spaces are not allowed in name.</b>"; }
elsif ($name =~ m/[A-Z]/) {$output = "<font color=red><b>The name does not allow capital letters.</b>"; }
.....

Cheers
TheStone.


B.
Quote Reply
Re: [TheStone] Changing allowed names for folders and files In reply to
Works perfectly.

Thank You.

Phil