Function toImportCandidate

  • Convert the passed file to an "import candidate" - an object suitable for passing to the ipfs-unixfs-importer. Note: content is an accessor so that the stream is only created when needed.

    Parameters

    • file: File

    Returns {
        path: string;
        get content(): any;
    }

    • path: string
    • get content(): any

Generated using TypeDoc