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"]

Related

From the Blog