-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added upload started and finished events #5
Conversation
… upload progress from outside the component.
Can you add also removed event? |
cb04aff
to
63a0519
Compare
Done i have added both filepond-upload-reverted and filepond-upload-file-removed events. |
Hi, i think there is a bit of a typo in there in line 64:
There should be a colon, not a comma before "response". Like this:
|
Thanks, this is necessary. If the form containing the filepond component is submitted before all of the files are uploaded, only some of the files will appear on the backend. |
here you go it's fixed now 👍, please let me know if there are any necessary additions. |
Thanks! |
A pleasure 😁 |
I have created issue #27 The below event throws exception "Only arrays and Traversables can be unpacked". $dispatch('filepond-upload-started', '{{ $wireModelAttribute }}'); I am unsure if any extra information is available at this point, so maybe the event should just be: $dispatch('filepond-upload-started'); |
Added upload started and finished events to make it easy to deal with upload progress from outside the component.
Let me Explain
I used this component and i love it, thank you for your hard work.
I just wanted to know when the upload starts and ends to disable/enable the submit button in my forms.
The problem was using the wire:loading attribute resulted in the button getting enabled and disabled two times for some reason but using the events it was fixed.