Adding the code there doesn't do anything.
If the user used [Select] for a file, automatically generate another blank entry below (avoid having them click on [Add])
OnClientFileSelected="checkExtension"
function checkExtension(radUpload, eventArgs) [
radUpload.addFileInput;
var input = eventArgs.get_fileInputField();
if (!radUpload.isExtensionValid(input.value)) [
var inputs = radUpload.getFileInputs();
for (i = 0; i < inputs.length; i++) [
if (inputs[i] == input) [
alert(input.value + " does not have a valid extension.");
radUpload.clearFileInputAt(i);
break;
]
]
]
]
If the user used [Select] for a file, automatically generate another blank entry below (avoid having them click on [Add])
OnClientFileSelected="checkExtension"
function checkExtension(radUpload, eventArgs) [
radUpload.addFileInput;
var input = eventArgs.get_fileInputField();
if (!radUpload.isExtensionValid(input.value)) [
var inputs = radUpload.getFileInputs();
for (i = 0; i < inputs.length; i++) [
if (inputs[i] == input) [
alert(input.value + " does not have a valid extension.");
radUpload.clearFileInputAt(i);
break;
]
]
]
]