Same file upload
<FileInput name="myImages" accept=".png,.gif, .jpeg" className="chat-file-upload" placeholder="Upload Image" onChange={this.uploadFileToChat} multiple readAs='binary' > </FileInput>
If you try to upload same file again then it won't detect onChange event. Can you please add some method like ClearInput which will clear this input value?
Thanks!
Hi @Dipen-Dedania, thanks for the suggestion.
I think that's a good idea, but I am a little over committed at the moment, maintaining other packages. I am happy to review a PR if you want to have a go at adding one.
I haven't fully tested this, but if you add value='' to the <FileInput> tag, it will allow you to repeat the same upload, as long as the component re-renders after the upload.