}
}
- height = 300;
+ height = 500;
width = Math.ceil(this.minWidth * height / this.minHeight);
if(this.minWidth > this.minHeight){
- width = 300;
+ width = 500;
height = Math.ceil(this.minHeight * width / this.minWidth);
}
}
this.file = file;
- if(typeof(file.type) != 'undefined') {
- console.log("CROPTYPE");
- console.log(this.cropType);
- console.log("FILETYPE");
- console.log(typeof(file.type));
- console.log(this.fileType);
+ if(typeof(file.type) != 'undefined' && file.type.length != 0) {
this.cropType = file.type;
}