Skip to content
This repository was archived by the owner on Aug 23, 2021. It is now read-only.
This repository was archived by the owner on Aug 23, 2021. It is now read-only.

client.import file was not a files.File #77

@JadTermsani

Description

@JadTermsani

when I run

const data = fs.createReadStream(path/to/file.jpg);
const cid = await fc.client.import(data);

I'm getting: given file was not a files.File

but I can get the cid if I only use

const cid = await fc.client.import(path/to/file.jpg);

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions