@cfxlabsinc/b2b-services
    Preparing search index...
    FilePut: (
        input: {
            file: F;
            headers: Record<string, string>;
            onProgress: (percent: number) => void;
            signal: AbortSignal;
            url: string;
        },
    ) => Promise<FilePutResult>

    Sends one file's bytes to url with exactly headers.

    Type Parameters

    • F

    Type Declaration

      • (
            input: {
                file: F;
                headers: Record<string, string>;
                onProgress: (percent: number) => void;
                signal: AbortSignal;
                url: string;
            },
        ): Promise<FilePutResult>
      • Parameters

        • input: {
              file: F;
              headers: Record<string, string>;
              onProgress: (percent: number) => void;
              signal: AbortSignal;
              url: string;
          }
          • file: F
          • headers: Record<string, string>
          • onProgress: (percent: number) => void
          • signal: AbortSignal

            Aborted when the upload is cancelled; the send must stop.

          • url: string

        Returns Promise<FilePutResult>