Gossamer Forum
Home : Products : Others : Fileman :

Filenames with a mixture of upper- and lowercase

Quote Reply
Filenames with a mixture of upper- and lowercase
Dear All,
I run Fileman on a FreeBSD system and IŽd like to upload filenames which consist of a mixture of upper- and lowercases. The script has been designed to automatically reduce all filenames to lowercase. How can I modify the following to allow uppercase (sorry, I never had to touch a Javascript before).
Thank you,
Philipp

function serverFileName() {
var fileName = window.document.Upload.data.value.toLowerCase();
window.document.Upload.fn.value = fileName.substring(fileName.lastIndexOf("\\\\")
+ 1,fileName.length);
Quote Reply
Re: Filenames with a mixture of upper- and lowercase In reply to
Should just be able to chop off the ".toLowerCase()" part.

Hope that helps,

Alex
Quote Reply
Re: Filenames with a mixture of upper- and lowercase In reply to
Alex,

it works. Many thanks.

Philipp