I have created multi-step form using formik-wizard, I added file type input field in first step but if I go to 2nd step and come back to 1st step then file input field found empty. How can I solve this issue ?
Here is my code example on codesandbox.
I have created multi-step form using formik-wizard, I added file type input field in first step but if I go to 2nd step and come back to 1st step then file input field found empty. How can I solve this issue ?
Here is my code example on codesandbox.
Copyright © 2021 Jogjafile Inc.
Formik doesn't support file upload by default, but you can try the solution by following the link:
ReactJS: How to handle Image / File upload with Formik?
You can store the file value in a state variable and use it during form submission.