you need to have this added to the file picker in order for useRef to work.
<Form.Control ref={file} onChange={handleFileChange} type=“file” />
you need to have this added to the file picker in order for useRef to work.
<Form.Control ref={file} onChange={handleFileChange} type=“file” />
Hmm it works fine without it for me. Does it not work for you?