Browser File Upload
browser_file_uploadUpload one or more local files to a file input element using its CSS selector and absolute file paths; supports single and multiple inputs.
Instructions
Upload one or more files to a file input element. Provide the CSS selector of the element and an array of absolute file paths to upload. Works with single and multiple file inputs. Examples: browser_file_upload({selector: "input[type=file]", paths: ["/home/user/document.pdf"]}) or multiple files: browser_file_upload({selector: "#photos", paths: ["/tmp/img1.png", "/tmp/img2.png"]})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. | |
| paths | Yes | Array of absolute file paths to upload. | |
| selector | Yes | CSS selector of the <input type="file"> element. | |
| sessionId | No | Puppeteer session ID. Skips mode selection. |