Closed ajithv11 closed 1 year ago
I have managed to fix this by adding the property fileOrFiles
as given below
const [fileAdded, setFileAdded] = useState(null);
<FileUploader
fileOrFiles={fileAdded}
handleChange={ async (file)=>{
// Process file like upload to server or make inner html
setFileAdded(null); // Resetting file this will allow to add same file
}}
/>
Hi,
I am facing an issue when I tried to upload same image two time, Could you please let me know if there is a reinitilization of exist here, My code is given below
Thanks in advance