Skip to content
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

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

Open
adnandani007 opened this issue Nov 17, 2022 · 3 comments
Open

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

adnandani007 opened this issue Nov 17, 2022 · 3 comments

Comments

@adnandani007
Copy link

No description provided.

@Sopamo
Copy link
Owner

Sopamo commented Nov 17, 2022

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

@adnandani007
Copy link
Author

@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
Copy link
Owner

Sopamo commented Nov 19, 2022

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.

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

No branches or pull requests

2 participants