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

feat: update progress percentage UI in accordance with w3up-client #52

Open akhileshthite opened 7 months ago

akhileshthite commented 7 months ago

Use onShardStored option in uploadFile and uploadDirectory.

See how it gets used in the w3cli here: https://github.com/web3-storage/w3cli/blob/55f546be85e321b00ddd18c8ded277935eedebde/index.js#L129C5-L129C18

See how the progress percentage UI was implemented previously in web3storage script: Files: https://github.com/p2plabsxyz/dscan/blob/b01101ad1cf4efc8e588cb0222614acfd640864c/src/scripts/web3Storage.js#L20 Folder: https://github.com/p2plabsxyz/dscan/blob/b01101ad1cf4efc8e588cb0222614acfd640864c/src/scripts/web3Storage.js#L50

159699899-44d83e3b-03e1-4cb3-bbcc-99679497ebe8