You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/web/api/datatransferitem/getasfilesystemhandle/index.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,9 @@ None.
39
39
This example uses the `getAsFileSystemHandle()` method to return
40
40
{{domxref('FileSystemHandle', 'file handles', '', 'nocode')}} for dropped items.
41
41
42
+
> [!NOTE]
43
+
> Because `getAsFileSystemHandle()` can only retrieve the entry handle in the same tick as the `drop` event handler, there must be no `await` before it. This is why we synchronously invoke `getAsFileSystemHandle()` for all items first, and then wait for their results concurrently.
0 commit comments