react-image-preview-tutorial icon indicating copy to clipboard operation
react-image-preview-tutorial copied to clipboard

There is an error

Open yeasin72 opened this issue 4 years ago • 2 comments

when you upload the first time. it's good but the second time it's showing an error

add this file.target.files.length === 1 && reader.readAsDataURL(file.target.files[0]) after

yeasin72 avatar Dec 16 '21 14:12 yeasin72

I think it just clears off the setstate. You can set if and else condition to avoid it according to your requirement.

MeRahulAhire avatar Dec 16 '21 15:12 MeRahulAhire

anyway, your repo helps me to create my component.

yeasin72 avatar Dec 28 '21 22:12 yeasin72