> ## Documentation Index
> Fetch the complete documentation index at: https://help.csvbox.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Import files from cloud storage

> Let users pick their file from Google Drive, Google Sheets, Microsoft OneDrive or Dropbox in the CSVbox importer instead of uploading it from their computer.

Import from cloud storage lets the people using your importer pick a file straight from their own Google Drive, Microsoft OneDrive or Dropbox account, instead of downloading it and uploading it from their computer. You turn each source on per importer. There is nothing to set up with the providers: CSVbox handles the connection.

## Turn on cloud sources

**1. Open the Security tab**

Open the importer and go to the **Security** tab. Find the **Import from Cloud Storage** card.

**2. Choose the sources**

Under **Sources**, turn on the providers you want to offer:

* **Google Drive / Google Sheets**
* **Microsoft OneDrive**
* **Dropbox**

All sources are off by default.

**3. Save**

Click **Save Changes**. The switches take effect only after you save.

You can also set the sources with the [Sheet API](https://help.csvbox.io/advanced-installation/sheet-api.md), in `security_settings.cloud_sources`:

```json theme={"dark"}
{
  "security_settings": {
    "cloud_sources": {
      "google_drive": true,
      "onedrive": false,
      "dropbox": true
    }
  }
}
```

When you create or replace a sheet, sources you leave out are turned off. A `PATCH` changes only the sources you name.

## What your users see

On the [file upload step](https://help.csvbox.io/sheet-settings/import-steps/file-upload.md), a row headed **Or import from** appears under the drop area, with a button for each source you turned on: **Google Drive / Sheets**, **OneDrive** and **Dropbox**.

**1. Sign in**

The user clicks a source. A pop-up window opens for them to sign in to that provider and allow read access. They have 3 minutes to finish signing in.

**2. Pick a file**

For Google, the Google file picker opens. For OneDrive and Dropbox, the importer shows the user's folders, listing only files the importer accepts. The user can open folders, go back, and load more files.

**3. Import**

CSVbox fetches the file and the import continues as if the user had uploaded it: header selection, column mapping, validation and your limits all apply as usual.

The user can also **Switch account**, **Log out** or **Cancel** from the file list.

The sign-in stays in the user's browser for up to an hour, so they can pick another file without signing in again. CSVbox never stores it. After it expires, the user signs in again.

## Supported files

The file list shows the same file types the importer accepts for uploads from a computer: the types allowed in the importer's settings, or CSV, XLS and XLSX if none are set.

**Google Sheets** spreadsheets are converted to Excel (`.xlsx`) when they're imported, so they're offered only when the importer accepts XLSX. If the spreadsheet has several tabs, the user picks one in the importer's usual worksheet step.

## File size limit

A cloud file can be no larger than the importer's **File Size Limit**, and never larger than 100 MB.

If a file is too large, the user sees **This file is too large.** If you set a custom message for the file size limit, the user sees your message instead, as for uploads from a computer.

## Privacy

* CSVbox only asks the provider for **read** access. With Google, access covers only the files the user picks.
* The file passes through CSVbox servers: CSVbox downloads it from the provider and hands it to the importer. The temporary copy is deleted as soon as the importer collects it, or after 10 minutes if it's never collected.
* After that, the importer's [file delete policy](https://help.csvbox.io/sheet-settings/security.md#file-delete-policy) applies, as for any upload.
* If the importer has [authorized domains](https://help.csvbox.io/sheet-settings/security.md#authorized-domains), cloud import only works on those domains.

> [!WARNING]
>
> If you use [Private Mode](https://help.csvbox.io/destinations/private-mode.md) to keep data off CSVbox servers, turn off every cloud source. Cloud files are always downloaded through CSVbox servers.

## Messages your users may see

| Message | What to do |
| - | - |
| `Your browser blocked the sign-in window. Allow pop-ups and try again.` | Allow pop-ups for the site and click the source again. |
| `The sign-in window was closed before you finished. Click the source to try again, or upload a file from your computer.` | Click the source again and finish signing in. |
| `Sign-in succeeded, but read access was not granted. Please sign in again and allow access.` | Sign in again and allow the requested access. |
| `Your sign-in expired. Click the source again to sign in.` | Click the source and sign in again. |
| `The provider denied access to this file.` | The signed-in account can't open the file. Check its sharing settings or use another account. |
| `The file or folder was not found. It may have been moved or deleted.` | Pick the file again. |
| `This file type is not supported.` | Pick a file type the importer accepts. |
| `This file is too large.` | Pick a smaller file, or ask the importer owner to raise the file size limit. |
| `The provider is busy. Please try again in a moment.` | Wait a moment and try again. |
| `This source is not available for this importer.` | The source was turned off. Upload the file from your computer. |
| `This website is not allowed to use this importer.` | The page isn't one of the importer's authorized domains. |

If a cloud file can't be fetched, the user can always upload it from their computer instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.