Skip to main content
FileType = Download | str | bytes
Represents different types of files that can be handled by the SDK Supports Playwright Download objects, file paths as strings, or raw bytes content 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.

Type Information

Download
type
Playwright Download object from browser download operations
str
type
File path as a string, or raw string content
bytes
type
Raw binary file content

Examples

from intuned_browser import Attachment
async def automation(page, params, **_kwargs):
from intuned_browser import download_file, upload_file_to_s3
# From a browser download
download = await download_file(page, "https://example.com/file.pdf")
uploaded = await upload_file_to_s3(download, None, s3_config)