S
soup_or_power
The browser shows the alert but causes an error "access denied" and
fails to set the upload.value to null. Please help!
for(var i=0; i < fileName.length;i++) {
if (fileName.charAt( i) ==' ' || fileName.charAt(i) == '*') {
document.forms[0].upload.value='';
alert("No spaces/wildcards allowed in file names"
+ f.upload.value);
return;
}
}
fails to set the upload.value to null. Please help!
for(var i=0; i < fileName.length;i++) {
if (fileName.charAt( i) ==' ' || fileName.charAt(i) == '*') {
document.forms[0].upload.value='';
alert("No spaces/wildcards allowed in file names"
+ f.upload.value);
return;
}
}