This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
ipfs-http-client upload folder not work #3873
Closed
Description
-
Version:
{
version: '0.9.1',
commit: 'dc2715a',
repo: '11',
system: 'amd64/linux',
golang: 'go1.15.2'
} -
Platform:
Darwin localhost 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64
Severity:
High
Description:
ipfs-http-client will throw this error when add Folder use globSource, I use it in nodejs project at local
AbortError: The user aborted a request.
Steps to reproduce the error:
const { create, globSource } = require('ipfs-http-client')
async function uploadFile() {
const ipfs = create('http://localhost:15001');
const file = await ipfs.add(globSource('./docs', { recursive: true }))
console.log(JSON.stringify(file))
}
uploadFile();