We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The naming here is confusing. How are we uploading one file but using the uploadDirectory method?
uploadDirectory
import * as Client from '@web3-storage/w3up-client' import { filesFromPaths } from 'files-from-path' const client = await Client.create() const files = await filesFromPaths(['./linked.jpeg']) const root = await client.uploadDirectory(files, { onShardStored: shard => console.log(shard.cid.toString()) }) console.log(root.toString())
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The naming here is confusing. How are we uploading one file but using the
uploadDirectory
method?The text was updated successfully, but these errors were encountered: