Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
export type FileType = Download | Uint8Array | Buffer | ReadStream;
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, }); }
import { uploadFileToS3 } from "@intuned/browser"; export default async function handler(params, page, context) { // From raw buffer const fileBuffer = Buffer.from("PDF content here...", "utf8"); const uploaded = await uploadFileToS3({ file: fileBuffer, fileNameOverride: "generated.pdf", configs: s3Config, }); }
import { uploadFileToS3 } from "@intuned/browser"; import { createReadStream } from "fs"; export default async function handler(params, page, context) { // From a file stream const fileStream = createReadStream("/path/to/document.pdf"); const uploaded = await uploadFileToS3({ file: fileStream, fileNameOverride: "renamed.pdf", configs: s3Config, }); }
Contact support