Open jmadureira opened 6 years ago
Hello
If you specify a default image with a fingerprint on the URL no preview will be shown.
<input type="file" class='dropify' data-default-file="../assets/images/auth_bg.jpg?243534523">
The problem seems to be related with the fact it doesn't determine the file extension correctly.
Dropify.prototype.getFileType = function() { return this.file.name.split('.').pop().toLowerCase(); };
This method should probably remove all possible query parameters before determining the file type.
Same problem here. My image URL doesn't look like https://mywebsite.com/image.png but https://mywebsite.com/image and dropify can not preview it.
https://mywebsite.com/image.png
https://mywebsite.com/image
Hello
If you specify a default image with a fingerprint on the URL no preview will be shown.
The problem seems to be related with the fact it doesn't determine the file extension correctly.
This method should probably remove all possible query parameters before determining the file type.