Skip to content

Commit

Permalink
Merge pull request #464 from FeatureSpitter/patch-1
Browse files Browse the repository at this point in the history
Allowing manually setting of GIF images
  • Loading branch information
vrajroham authored Jul 1, 2019
2 parents ecbcca8 + dd59106 commit 5e1468f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/vue-dropzone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export default {
file.manuallyAdded = true
this.dropzone.emit("addedfile", file)
let containsImageFileType = false
if (fileUrl.indexOf('.svg') > -1 || fileUrl.indexOf('.png') > -1 || fileUrl.indexOf('.jpg') > -1 || fileUrl.indexOf('.jpeg') > -1) containsImageFileType = true
if (fileUrl.indexOf('.svg') > -1 || fileUrl.indexOf('.png') > -1 || fileUrl.indexOf('.jpg') > -1 || fileUrl.indexOf('.jpeg') > -1 || fileUrl.indexOf('.gif') > -1) containsImageFileType = true
if (this.dropzone.options.createImageThumbnails && containsImageFileType && file.size <= this.dropzone.options.maxThumbnailFilesize * 1024 * 1024) {
fileUrl && this.dropzone.emit("thumbnail", file, fileUrl);
Expand Down

0 comments on commit 5e1468f

Please sign in to comment.