Skip to content

Conversation

@kishanmadhesiya
Copy link
Contributor

@kishanmadhesiya kishanmadhesiya commented Jul 12, 2018

This is a fix for manuallyAddFile().

this.$refs.myVueDropzone.manuallyAddFile({
      name:"xyz.pdf",size:10000, type:"application/pdf"
},fileurl)

if the type of file is not image then it will not create preview. Right now its showing like : <img src="xyz.pdf"/> means it shows image preview for pdf and other non image file.

@rowanwins
Copy link
Owner

Hi @kishanmadhesiya

Thanks for the change, however it needs to be made to src/components/vue-dropzone.vue file otherwise your change will get blasted away on the next release. If you could update your pull request that would be appreciated.

Thanks,
Rowan

@vrajroham vrajroham merged commit ac53ba9 into rowanwins:master Aug 31, 2018
@vrajroham
Copy link
Collaborator

@kishanmadhesiya Thanks for this great contribution! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants