Skip to main content
A union type representing different file formats that can be processed by the SDK. Provides flexibility in how files can be passed to various functions, supporting multiple input formats.
export type FileType = Download | Uint8Array | Buffer | ReadStream;

Examples

import { downloadFile, uploadFileToS3 } from "@intuned/browser";
export default async function handler(params, page, context) {
  // From a browser download
  const download = await downloadFile({
    page,
    trigger: "https://example.com/file.pdf",
  });
  const uploaded = await uploadFileToS3({
    file: download,
    configs: s3Config,
  });
}