Skip to main content
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, in security_settings.cloud_sources:
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, 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 applies, as for any upload.
  • If the importer has authorized domains, cloud import only works on those domains.
If you use Private Mode to keep data off CSVbox servers, turn off every cloud source. Cloud files are always downloaded through CSVbox servers.

Messages your users may see

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