[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/API/FileSystemFileHandle/getFile [Back]  [Original]

FileSystemFileHandle.getFile() - Web API | MDN

MDN Web Docs

View in English Always switch to English

FileSystemFileHandle.getFile()

Baseline

20233

: (HTTPS)

:

FileSystemFileHandle getFile() File Promise

File

js
getFile()

File Promise

NotAllowedError DOMException

PermissionStatus.state granted

NotFoundError DOMException

getFile()

js
async function getTheFile() {
  // 
  [fileHandle] = await window.showOpenFilePicker(pickerOpts);

  // 
  const fileData = await fileHandle.getFile();
}

File System
# api-filesystemfilehandle-getfile


Web Proxy Viewer  |  New URL  |  Original Page