naystack - v1.5.10
    Preparing search index...

    Function uploadFile

    • Returns a function that uploads a file (by URL or Blob) to the given S3 key(s).

      Parameters

      • client: S3Client

        S3 client instance.

      Returns (
          keys: string | string[],
          __namedParameters: { blob?: Blob; url?: string },
      ) => Promise<string | null>

      (keys, { url?, blob? }) => Promise<string | null> — the download URL on success, or null if no input.