i am trying to submit a form useing react-hook-form & react-step-builderin react js i mannaged to submit the form with out file all other field are working except file
how can i achive this
<input
{...register("idproof", { required: true })}
onChange={props.handleChange}
style={styles.file}
type="file"
/>
</div>
my code is also giving error when i tryed to put it in codesandbox so i cant give a working exaample but i will put the link to codesandbox here
https://codesandbox.io/s/wizardly-worker-zicnr?file=/src/App.js