Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

feat: pass file name to add/addAll progress handler #3372

Merged
merged 5 commits into from
Nov 6, 2020

Conversation

achingbrain
Copy link
Member

Since ipfs/js-ipfs-unixfs#87 landed we can now pass the file name to
the progress handler for adding files:

await ipfs.addAll(..., {
  progress: (bytes, fileName) => {
    //...
  }
})

This should make showing progress a bit more usable.

Since ipfs/js-ipfs-unixfs#87 landed we can now pass the file name to
the progress handler for adding files:

```js
await ipfs.addAll(..., {
  progress: (bytes, fileName) => {
    //...
  }
})
```

This should make showing progress a bit more usable.
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@hugomrdias hugomrdias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside the inline suggestions LGTM

packages/ipfs-core/src/components/add-all/index.js Outdated Show resolved Hide resolved
packages/ipfs-core/src/components/add-all/index.js Outdated Show resolved Hide resolved
@achingbrain achingbrain merged commit 69681a7 into master Nov 6, 2020
@achingbrain achingbrain deleted the feat/pass-file-name-to-progress-handler branch November 6, 2020 14:18
SgtPooki referenced this pull request in ipfs/js-kubo-rpc-client Aug 18, 2022
Since ipfs/js-ipfs-unixfs#87 landed we can now pass the file name to
the progress handler for adding files:

```js
await ipfs.addAll(..., {
  progress: (bytes, fileName) => {
    //...
  }
})
```

This should make showing progress a bit more usable.

Co-authored-by: Hugo Dias <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants