Guides
Cloud Integrations
Import files from Google Drive, Dropbox, OneDrive, and more.
Supported Providers
| Provider | Import | Export | Status |
|---|---|---|---|
| Google Drive | ✓ | - | Full support |
| Dropbox | ✓ | - | Full support |
| OneDrive | ✓ | - | Full support |
| Google Photos | ✓ | - | Full support |
How Cloud Import Works
- Connect - Authenticate with the cloud provider via OAuth
- Browse - List files and folders from the connected account
- Select - Choose which files/folders to import
- Import - ZeroDrive downloads and stores files in your account
- Access - Files are now available in your ZeroDrive
Google Drive Integration
Step 1: Connect Account
Redirect the user to initiate OAuth:
This redirects to Google's OAuth consent screen. After authorization, the user is redirected back to ZeroDrive.
Scopes Requested:
drive.readonly- Read access to filesdrive.file- Access to files created by the app
Step 2: Check Connection Status
Response
Step 3: Browse Google Drive Files
Response
Step 4: Start Import
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | google, dropbox, onedrive, or googlePhotos |
items | array | Yes | Files/folders to import |
destinationFolderId | string | No | Target folder in ZeroDrive |
Response
Step 5: Check Import Status
Response
Status Values:
pending- Job queuedrunning- Import in progresscompleted- All items processedfailed- Import failed
Step 6: Disconnect
Dropbox Integration
Connect
Scopes Requested:
files.metadata.readfiles.content.readfiles.content.writeaccount_info.read
Browse Files
Import Files
Disconnect
OneDrive Integration
Connect
Uses Microsoft Azure AD OAuth.
Scopes Requested:
Files.ReadFiles.Read.AllFiles.ReadWriteFiles.ReadWrite.AllSites.Read.AllSites.ReadWrite.AllUser.Readoffline_access
Browse Files
Import Files
Disconnect
Google Photos Integration
Connect
Browse Albums & Photos
Import Photos
Disconnect
Import Best Practices
Check Storage Before Import
Handle Large Imports
For many files, import in batches:
Monitor Progress
Error Handling
Connection Errors
Solution: Redirect user to connect endpoint.
Import Already Running
Only one import per provider can run at a time.
Token Expired
Solution: Disconnect and reconnect the provider.
Storage Exceeded
Some files may have been imported before hitting the limit.
Complete Integration Example
Security Notes
- OAuth tokens are stored securely - Encrypted at rest, never exposed via API
- Refresh tokens - Long-lived access maintained via refresh tokens
- Minimal scopes - Only necessary permissions requested
- Revocation - Disconnecting removes all stored tokens
- No write access - ZeroDrive only reads from cloud providers, never modifies