odysseyscience/react-s3-uploader

Cannot upload same image multiple times

Open

#168 aberto em 28 de fev. de 2018

Ver no GitHub
 (4 comments) (2 reactions) (0 assignees)JavaScript (243 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (828 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador