Upload sources options
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.
See all options for the full list.
sourceList
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:
localurlcameradropboxgdrivefacebookgphotosboxonedrive
Custom upload sources can be added via the Plugin API.
externalSourcesPreferredTypes
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
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
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
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
Key to revoke Custom OAuth access. See OAuth docs for details.
Attribute: remote-tab-session-key
DOM property: remoteTabSessionKey
Type: string
Default: ''
socialBaseUrl
Set a custom social sources URL.
Attribute: social-base-url
DOM property: socialBaseUrl
Type: string
Default: 'https://social.uploadcare.com'