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

Submitting Images in React Final Form #1036

Open
HarshArora-1205 opened this issue Aug 11, 2023 · 0 comments
Open

Submitting Images in React Final Form #1036

HarshArora-1205 opened this issue Aug 11, 2023 · 0 comments

Comments

@HarshArora-1205
Copy link

HarshArora-1205 commented Aug 11, 2023

Are you submitting a bug report or a feature request?

I am submitting a feature request. There is no documentation related to Images in React-Final-Form Docs. Further there is no tutorial or not much stack overflow support available.
Now it's being difficult to tweak the form as per my need and it will be a hard change in my project to switch to another form. It would be helpful if documentation is updated or if new feature related to that comes up (if not existing yet).

What is the current behavior?

Currently I can't get behind the scenes info for controlled input for uploading multiple files. Moreover after trying modifying onChange() handler, using states to set data, the form automatically re-renders which doesn't help in any way.

What is the expected behavior?

If there could be documentation related to handling images and uploading multiple images and passing it to backend, it will be very helpful. Further providing methods how to tweak onChange() or other properties in documentaion, will also be helpful.

What's your environment?

I am currently using Fedora 38, React version: 18.2.0, React Final Form version: 6.5.9, Final Form Version: 4.20.9, Browser: Mozilla Firefox/ Brave.

Other information

In summary, I wish to upload multiple images in react final form, for which I tried to pass encType='mutlipart/form-data' in form itself as well as req header, tried to set files state right after getting input (by tweaking onChange() function). Still proper Documentation is required as there is not much online support available.

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

1 participant