Hello,
I am experiencing the same thing, however I cannot explain it. It is in the javascript client-side validation that it is happening.
So far, it is happening just for "JPG" vs "jpg". For instance both "txt" and "TXT" work and I only have "txt" in the allowed file extensions list. If the file's extension is "JPG" and I only have "jpg" in the allowed file extensions, the javascript function detects -1 and throws the "This file type is not supported." error.
Here is the js function that I am using:
function getErrorMessage(sender, args) {
var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
if (args.get_fileName().lastIndexOf('.') != -1) {//this checks if the extension is correct
if (sender.get_allowedFileExtensions().indexOf(fileExtention) == -1) {
return ("This file type is not supported.");
}
else {
return ("This file exceeds the maximum allowed size of 80 KB.");
}
}
else {
return ("not correct extension.");
}
}
I am using Telerik.Web.UI v2015.2.623.45.
If I set the allowed file extensions like this:
AllowedFileExtensions="txt,jpg,JPG"
it does not throw the error.
Any suggestions as to why this is happening would be appreciated.
Thanks,
Ray Goforth