-
-
Notifications
You must be signed in to change notification settings - Fork 128
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
Combine normal form with filepond vuejs #99
Comments
FilePond will POST each individual file to If you want to send everything together you have to listen to the onupdatefiles event and populate the images array from there. |
ok, so I must remove the server property from the component, Then add something like:
To send the array, do I need to declare const data = new FormData ()? |
I'm not sure how that works in Vue. onUpdate files returns a file items array you'll have to extract the file objects before adding them to your FormData object. |
@rikschennink, thank you for support. FormComponent:
Vuex:
API Laravel:
I will be writing a post in the future to help other devs. Thank you so much for your help and success. |
Esto de verdad me interesa mucho no hay mucha información sobre esto, intento hacerlo de la misma |
I am developing using Laravel 5.6 + Vuejs and I am in doubt using Filepond 5.1.
I have a form with user data and would like to send only 1 request to the server, containing the user data with the 5 images loaded, when the user clicks the submit button, is it possible to do this with filepond?
I read some tutorials but found nothing concrete.
The request is sent, but laravel does not recognize the images field when using request->file('images') on controller.
Example:
VUEJS
API Laravel
FormComponent
VUEX
The text was updated successfully, but these errors were encountered: