Skip to content

Commit

Permalink
Allowing manually setting of GIF images
Browse files Browse the repository at this point in the history
  • Loading branch information
FeatureSpitter authored Jun 11, 2019
1 parent f76987a commit dd59106
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 @@ -261,7 +261,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 dd59106

Please sign in to comment.