← Back to DOM domain

DOM.getFileInfo

Returns file information for the given File wrapper.

Domain: DOM experimental

Parameters

NameTypeDescription
objectIdRuntime.RemoteObjectIdJavaScript object id of the node wrapper.

Returns

NameTypeDescription
pathstring

Example Request

{
  "id": 1,
  "method": "DOM.getFileInfo",
  "params": {
    "objectId": "{\"injectedScriptId\":1,\"id\":1}"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "path": "path-value"
  }
}

Usage in Node.js

const result = await send('DOM.getFileInfo', {"objectId": "{\"injectedScriptId\":1,\"id\":1}"});
console.log(result);
// {"path": "path-value"}