Fixes up a few issues found with media uploading

This commit is contained in:
Shannon
2013-08-28 10:45:50 +10:00
parent f03180e6f8
commit dedaa2125d
4 changed files with 31 additions and 19 deletions

View File

@@ -120,7 +120,7 @@ function imageHelper() {
return imagePath.substr(0, imagePath.lastIndexOf('.')) + "_thumb" + ".jpg";
},
detectIfImageByExtension: function(imagePath) {
var lowered = imagePath;
var lowered = imagePath.toLowerCase();
var ext = lowered.substr(lowered.lastIndexOf(".") + 1);
return ("," + Umbraco.Sys.ServerVariables.umbracoSettings.imageFileTypes + ",").indexOf("," + ext + ",") !== -1;
}