odysseyscience/react-s3-uploader

Cannot upload same image multiple times

オープン

#168 opened on 2018/02/28

 (4 件のコメント) (2 件のリアクション) (0 人の担当者)JavaScript (243 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (828 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

I have a case in which i upload an image with react-s3-uploader. Then the users deletes it. And wants to reupload same photo.

The input field does not detect a change if the same file is selected.

The fix i used is the following:

this.uploadInput.value=null where uploadInput if the ref to the react component.

StackOverflow issue here : https://stackoverflow.com/questions/39484895/how-to-allow-input-type-file-to-select-the-same-file-in-react-component/40429197

コントリビューターガイド