vue-picture-input icon indicating copy to clipboard operation
vue-picture-input copied to clipboard

Change fileInput's files value on drag and drop.

Open smketterer opened this issue 6 years ago • 1 comments

Hi there. First of all, thanks for your work on this component.

Earlier today I had issues with the file uploader not updating the input element's file value on drag-and-drop. This was creating problems as I was using Django's forms without any trickery. After some searching I found this Stack Overflow answer which shows that you can set file inputs from FileLists – in this component, this can be accomplished by putting this.$refs.fileInput.files = files near the end of onFileChange.

Is there a reason this isn't implemented currently?

If not, I can create a PR if you wish.

smketterer avatar Jul 09 '18 22:07 smketterer

Hi, thank you very much, I am glad you found it useful.

I don't think there is a specific reason, you can file a PR, if you like! :)

alessiomaffeis avatar Jul 10 '18 09:07 alessiomaffeis

Will be fixed in 3.0.1

alessiomaffeis avatar Jul 20 '23 21:07 alessiomaffeis