Bug 257792 - Add support for `DataTransferItem.getAsFileSystemHandle()`
Summary: Add support for `DataTransferItem.getAsFileSystemHandle()`
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Safari 16
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2023-06-07 04:33 PDT by Thomas Steiner
Modified: 2023-06-14 17:39 PDT (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Steiner 2023-06-07 04:33:21 PDT
The `getAsFileSystemHandle()` method of the `DataTransferItem` interface returns a `FileSystemFileHandle` if the dragged item is a file, or a `FileSystemDirectoryHandle` if the dragged item is a directory.

MDN: https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsFileSystemHandle
Article: https://developer.chrome.com/articles/file-system-access/#drag-and-drop-integration
Comment 1 Radar WebKit Bug Importer 2023-06-14 04:34:16 PDT