Sopamo / laravel-filepond

Laravel backend module for filepond uploads
MIT License
202 stars 56 forks source link

how will it work with multiple file inputs inside one form? #67

Open adnandani007 opened 1 year ago

Sopamo commented 1 year ago

Each filepond instance will communicate with the server independently and will report back its "server id(s)".

adnandani007 commented 1 year ago

@Sopamo

currently, it only works if I set the file input name to "file", if I change the input name to something else like avatar, or banner it doesn't work.

Sopamo commented 1 year ago

Usually you wouldn't rely on the browser's native form submission, but read the server ids from your inputs with js and then submit the data to the server. That way you could keep the input name at "file" for all inputs. I'd also be open for PRs adding support for arbitrary input keys, should be relatively easy to implement.