Back to docs

Tool Upload File

Category: Browser Automation Β· Tier: Free

Upload file(s) to a file input element. Works with <input type="file"> elements.

Parameters

Parameter Type Required Description
selector string Yes CSS selector for the file input element
filePaths string[] Yes Array of absolute file paths to upload
_browserToken string No Browser session token

Example

Upload my resume to the job application form
β†’ upload_file selector="#resume-input" filePaths=["/tmp/resume.pdf"]

From the Blog