Also, can you tell me if this would work to grab the filename without the extension?
- for (var i = 0; i < files.length; i++) {
- var name = files[i].FileName;
- var extension = System.IO.Path.GetfileNameWithoutExtension(file[i].FileName);
- var extensionless = name.substring(0, name.Length - extension.Length);
- alert(extensionless);
-
- }
Hasn't worked me.