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

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
});
}