@cfxlabsinc/b2b-services
    Preparing search index...

    Uploads files a few at a time: sign, PUT, then index. It holds no React state, so a host can keep one past the page that started an upload, and each file keeps the actions of the folder it was added to.

    Type Parameters

    Index
    • Queues files for folder; one validate turns away becomes a rejected row.

      Parameters

      • __namedParameters: {
            actions: FileUploadActions;
            files: F[];
            folder: string;
            validate: (file: F) => string | null;
        }
        • actions: FileUploadActions
        • files: F[]
        • folder: string
        • validate: (file: F) => string | null

          Why the file cannot be sent at all, or null.

      Returns void

    • Stops a file that is queued or being sent: the send is aborted, the row goes, and the list is never told of it. A file already being listed cannot be cancelled.

      Parameters

      • key: string

      Returns void