GetAllFIles

Retrieves all files within a specified bucket.

  • Arguments

    • bucketName: The name of the bucket from which to retrieve files.
    • limit (optional): The maximum number of files to retrieve.
    • skip (optional): The number of files to skip (for pagination).
  • Returns

    • An array Promise<{ files:BreezeFileType[];fileCount:number; totalPages:number}> that resolves to an object containing the list of files and the total file count.
import { BreezeUploader } from "breeze-uploader-sdk";

const breeze = new BreezeUploader({
  apiKey: "YOUR_API_KEY",
  secretKey: "YOUR_SECRET_KEY",
});

await breeze.getAllFiles({ bucketName: "YOUR_BUCKET_NAME" });
Docs and examples licensed under MIT