p2plabsxyz / dscan

A decentralized storage and file-sharing tool that uploads content to IPFS and generates decentralized QR codes.
https://chromewebstore.google.com/detail/dscan-own-your-identity-o/idpfgkgogjjgklefnkjdpghkifbjenap
MIT License
36 stars 26 forks source link

Error on upload cancel #33

Closed zluipaiva closed 1 year ago

zluipaiva commented 1 year ago

Define You:

Describe the Bug

An error is thrown when you successfully upload a file and then cancel a second file upload. The same happens when uploading folders

Steps to Reproduce

Steps to reproduce the behavior:

While on file upload screen:

  1. Click on "Upload" button
  2. Select a file and confirm upload
  3. Click on "Upload" again
  4. Cancel the file upload

Expected Behavior

When the second upload is cancelled, the application should not change its state and should continue displaying the previous qr code

Actual Behavior

When the upload is cancelled, the app appears to be uploading another file, but the loading stays on 0% and an error is throw in the console.

Screenshots

Error message: image

zluipaiva commented 1 year ago

If possible, I would like to work on it!

akhileshthite commented 1 year ago

If possible, I would like to work on it!

Yep, go ahead.