Roo/dialog/UploadCropbox.js
[roojs1] / Roo / dialog / UploadCropbox.js
index 08d5a60..c2cfd23 100644 (file)
@@ -1398,7 +1398,9 @@ Roo.extend(Roo.dialog.UploadCropbox, Roo.Component,  {
         }
         
         this.file = file;
-        this.cropType = file.type;
+        if(typeof(file.type) != 'undefined') {
+            this.cropType = file.type;
+        }
         
         var _this = this;