DOM.setFileInputFilesSets files for the given file input element.
| Name | Type | Description |
|---|---|---|
files | array | Array of file paths to set. |
nodeId (optional) | NodeId | Identifier of the node. |
backendNodeId (optional) | BackendNodeId | Identifier of the backend node. |
objectId (optional) | Runtime.RemoteObjectId | JavaScript object id of the node wrapper. |
{
"id": 1,
"method": "DOM.setFileInputFiles",
"params": {
"files": []
}
}
{
"id": 1,
"result": {}
}
const result = await send('DOM.setFileInputFiles', {"files": []});
console.log(result);