> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://uploadcare.com/docs/llms.txt.

# Upload sources options

> File Uploader options: upload sources.

Options that choose where users can upload from: local files, camera, URLs, the clipboard, and external services like Dropbox or Google Drive.

Related guides: [Upload sources](/docs/upload-sources/).

See [all options](/docs/file-uploader/options/) for the full list.

### sourceList \[#source-list]

Comma-separated list of file sources.

Attribute: `source-list`

DOM property: `sourceList`

Type: `comma separated string`

Default: `'local, url, camera, dropbox, gdrive'`

Full source list:

* `local`
* `url`
* `camera`
* `dropbox`
* `gdrive`
* `facebook`
* `gphotos`
* `box`
* `onedrive`

Custom upload sources can be added via the [Plugin API](/docs/file-uploader/plugins/).

### externalSourcesPreferredTypes \[#external-sources-preferred-types]

An ordered, comma-separated list of MIME types.

This setting affects the behavior of the Google Drive source only. Defines a set
of preferred MIME types in which Google Workspace documents will be exported
upon uploading to Uploadcare. If not set, all types of documents will be
exported as PDFs. If a set MIME type is not supported, it will be ignored.

[Complete list of supported export MIME types](https://developers.google.com/drive/api/guides/ref-export-formats)

The asterisk `*` wildcard can be used for subtypes.

For example, if you want all documents exported in Open XML format, set
`externalSourcesPreferredTypes` as
`application/vnd.openxmlformats-officedocument.*`.

Attribute: `external-sources-preferred-types`

DOM property: `externalSourcesPreferredTypes`

Type: `comma separated string`

Default: `''`

### pasteScope Since v1.27.0 \[#paste-scope]

Control how File Uploader handles clipboard paste events. This setting determines whether paste events are captured globally across the page or scoped to the File Uploader’s DOM subtree.

* `local`: listen only for paste events originating within the File Uploader’s DOM subtree. This prevents accidental uploads triggered elsewhere on the page.
* `global`: capture all paste events on the page and route clipboard files or URLs to the associated File Uploader instance.
* `false`: disable clipboard paste handling entirely.

Attribute: `paste-scope`

DOM property: `pasteScope`

Type: `local` | `global` | `false`

Default: `local`

### topLevelOrigin Since v1.17.0 \[#top-level-origin]

Specifies the origin for top-level frame communication. It's needed for Google Drive integration in case when the File Uploader is embedded in a cross-origin iframe.

For example, if your File Uploader is embedded in a cross-origin iframe on `https://example.com`, you should set this option to `https://example.com`.

Attribute: `top-level-origin`

DOM property: `topLevelOrigin`

Type: `string`

Default: `''`

### remoteTabSessionKey \[#remote-tab-session-key]

Key to revoke Custom OAuth access. See [OAuth docs](/docs/upload-sources/#oauth) for details.

Attribute: `remote-tab-session-key`

DOM property: `remoteTabSessionKey`

Type: `string`

Default: `''`

### socialBaseUrl \[#social-base-url]

Set a custom social sources URL.

Attribute: `social-base-url`

DOM property: `socialBaseUrl`

Type: `string`

Default: `'https://social.uploadcare.com'`