Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cloud file handling proposal #411

Merged
merged 13 commits into from
Jun 22, 2023
12 changes: 6 additions & 6 deletions proposals/CloudFileHandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ if(cloudHandles.length === 0) {
// File is not synced by any CSP
}
for(const cloudHandle of cloudHandles) {
if(cloudHandle.provider === 'drive.google.com') {
alex292 marked this conversation as resolved.
Show resolved Hide resolved
// retrieve/modify the file from Google Drive API using cloudHandle.token
} else if(cloudHandle.provider === 'onedrive.live.com') {
// retrieve/modify the file from Microsoft OneDrive API using cloudHandle.token
if(cloudHandle.provider_name === 'drive.google.com') {
// retrieve/modify the file from Google Drive API using cloudHandle.id
} else if(cloudHandle.provider_name === 'onedrive.live.com') {
// retrieve/modify the file from Microsoft OneDrive API using cloudHandle.id
}
}
```
Expand Down Expand Up @@ -115,8 +115,8 @@ This section describes the interface the web app would interact with.

```idl
dictionary FileSystemCloudHandle {
DOMString provider;
DOMString token;
DOMString provider_name;
DOMString id;
};

partial interface `FileSystemHandle` {
Expand Down