Skip to content

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

@akhileshthite

Description

@akhileshthite

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:

onStoredChunk: getProgressUpdater(files),

Folder:
onStoredChunk: getProgressUpdater(updatedFiles),

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions