Hi all,<BR><BR>I want to trim a filename that i'm uploading. So, for example, if I upload filename.txt, I want to trim this to just filename (remove the last 4 characters).<BR><BR>How do I do this?
As with an earlier question, take a look at the Split() method of the String object and look for the "."<BR><BR>mySplit = myFileName.split(".")<BR>document.write("FileName = " + mySplit);<BR>document.write("Extension =" + mySplit);<BR>