I have implemented formik multi-step form using formik-wizard-form. It works fine with other inputs except for file upload.
I am using the following code for file upload:
<Form.Group controlId="upload">
<Col>
<div className="form-group files">
Add Attachments:
<input
type="file"
name="upload"
value={values.upload?.files }
onChange={event => {
setFieldValue("upload", event.currentTarget.files);
}}
multiple />
</div>
</Col>
</Form.Group>
Console log upload values is as shown below.
How do I pass the file uploads to the server?
