Closed Arsh1a closed 1 year ago
If you mean re-uploading after value resetting, pass your value into fileOrFiles
property. Helped for me.
const [file, setFile] = useState<File>(null)
...
<FileUploader
types={ ['mp4', 'mkv'] }
handleChange={ (file: File) => setFile(file) }
fileOrFiles={ file } />
handleChange does not work if we upload same file again.