Skip to content

Commit

Permalink
Added a note regarding permissions to FileSystemFileHandle doc (#2891)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgentes authored Mar 6, 2021
1 parent 4900d90 commit 757f987
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/en-us/web/api/filesystemfilehandle/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
- Interface
- working with files
---
<div>{{draft}}{{securecontext_header}}{{DefaultAPISidebar("File System Access API")}}</div>
<div>{{securecontext_header}}{{DefaultAPISidebar("File System Access API")}}</div>

<p class="summary">The <strong><code>FileSystemFileHandle</code></strong> interface of the {{domxref('File System Access API')}} represents a handle to a file system entry. The interface is accessed thought the {{domxref('window.showOpenFilePicker()')}} method.</p>

<p>Note that read and write operations depend on file-access permissions that do not persist after a page refresh if no other tabs for that origin remain open. The {{domxref("FileSystemHandle.queryPermission()", "queryPermission")}} method of the {{domxref("FileSystemHandle")}} interface can be used to verify permission state before accessing a file.</p>

<h2 id="Properties">Properties</h2>

<p><em>Inherits properties from its parent, {{DOMxRef("FileSystemHandle")}}.</em></p>
Expand Down

0 comments on commit 757f987

Please sign in to comment.