File Uploads
Browser runtimes support uploading files to <input type="file"> elements. Since the browser runs remotely, files are sent as base64-encoded payloads.
Setting input files
Playwright
Use setInputFiles on a locator or page:
Multiple files
Clear selected files
File payload format
Stagehand
Stagehand uses the same file payload format:
Multipart form data (Playwright)
For API requests that accept file uploads via multipart form data:

