FileSystemHandle.getCloudIdentifiers()
- Category
- File APIs
- Type
- New or changed feature
- Status
- In development (Chrome In development)
- Intent stage
- Start prototyping
Summary
This proposal adds a new getCloudHandles() method to FileSystemHandle, which allows retrieval of cloud handles for a file/directory. A cloud handle consists of a vendor identifier (e.g. "drive.google.com") and a file identifier. With these, the web app can talk to the cloud storage provider through its APIs directly to retrieve/modify the file. This is useful for web apps to figure out if a file is already backed by cloud storage and allows for easier transfer across machines as just the identifier instead of the entire file contents needing to be transfered.
Motivation
Web apps interacting with files/directories via file system access web API can benefit from additional capabilities when they know whether a file/directory is synced via cloud storage and what ID the cloud storage provider is using for it. Use cases: * Remote file handling: If the file should be transferred to another machine, instead of uploading it from the device itself and syncing it back, we can simply pass the cloud identifier for the file/directory to the remote machine, which directly pulls it from the cloud storage provider and also syncs it back. * De-duplication for online document editors: For cloud-based online document editors (Google Docs or Microsoft Office 365 web), the document needs to be in cloud storage (Google Drive or Microsoft OneDrive) before it can be edited. With this API, the web app could detect that a given file is already in cloud storage and edit it directly instead of creating a new duplicate. * Drag & drop into Mail: When sharing a large file via mail, instead of actually transferring the file with the mail as attachment, the web-based mail clients could instead detect that the file is in cloud storage, request it to be shared via link and simply include the link in the mail.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: Positive
- Tracking bug: https://crbug.com/1443354
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=filesystemhandle-getcloudidentifiers
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+FileSystemHandle.getCloudIdentifiers()
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=FileSystemHandle.getCloudIdentifiers()
- Baseline status: https://webstatus.dev/?q=FileSystemHandle.getCloudIdentifiers()
Explainers: https://github.com/WICG/file-system-access/blob/main/proposals/CloudIdentifier.md