UI and localization options
Options that change how the uploader looks and which language it speaks.
Related guides: Styling, Localization, Dynamic button.
See all options for the full list.
filesViewMode Since v1.15.0
Defines the view mode for the file list.
Available values:
list: list view modegrid: grid view mode
Attribute: files-view-mode
DOM property: filesViewMode
Default: 'list'
gridShowFileNames Since v1.15.0
Show file names in the grid view mode.
Attribute: grid-show-file-names
DOM property: gridShowFileNames
Type: boolean
Default: false
thumbSize
Thumbnail size for images.
Attribute: thumb-size
DOM property: thumbSize
Type: number
Default: 76
showEmptyList
Show the upload list even if it is empty.
Attribute: show-empty-list
DOM property: showEmptyList
Type: boolean
Default: false
Available in: regular and inline modes
dynamicButtonViewMode Since v1.30.1
Controls how Dynamic Button displays upload sources. This option applies when
uc-file-uploader-regular is used with the dynamic-button attribute.
auto: shows secondary sources inline for up to three sources and switches to a dropdown menu when there are more.menu: shows the first source as the primary action and puts the remaining sources in a dropdown menu.toolbar: shows the first source as the primary action and the remaining sources inline.compact: shows a single paperclip-style menu button while idle and puts all sources in the menu.plain: shows a single upload button, with no source actions next to it, that starts the same upload flow as the regular button.
Attribute: dynamic-button-view-mode
DOM property: dynamicButtonViewMode
Type: plain | auto | menu | toolbar | compact
Default: plain
dynamicButtonShowFirstIcon Since v1.30.1
Shows the first source icon inside Dynamic Button’s primary action while no files
are selected. This option applies when uc-file-uploader-regular is used with
the dynamic-button attribute.
Attribute: dynamic-button-show-first-icon
DOM property: dynamicButtonShowFirstIcon
Type: boolean
Default: true
modalPresentation Since v1.37.0
How the uploader’s modal dialogs open.
Available values:
modal: the dialog opens in the top layer, over a backdrop, and the rest of the page is inert and doesn’t scroll until it closes.inline: the dialog opens in place, where the uploader sits in the page, with no backdrop or scroll lock, and the rest of the page stays usable. A click outside the dialog or the Escape key closes it. Use it to embed the dialog in your own layout, for example a preview panel. The dialog is positioned by the page’s CSS, so give its container a size and position.
Attribute: modal-presentation
DOM property: modalPresentation
Type: 'modal' | 'inline'
Default: 'modal'
Available in: regular and minimal modes
localeName Since v0.38.0
Specifies the locale to use for localization.
See Localization for details.
Attribute: locale-name
DOM property: localeName
Type: string
Default: "en"
localeDefinitionOverride Since v0.38.0
Works as DOM property only.
Defines overrides to the specified locale definition. It allows easy tweaking of the localization without defining a new locale from scratch.
See Localization for details.
Attribute: -
DOM property: localeDefinitionOverride
Type: Record<string, Record<string, string>>
Default: null
iconHrefResolver Since v0.40.0
Works as DOM property only.
Defines a function that resolves the icon sprite URL by its name. The result
will be used as the href attribute of the <use> tag. If nothing is returned,
the default icon sprite will be used.
See Icons article for details.
Attribute: -
DOM property: iconHrefResolver
Type: (iconName: string) => (string | undefined)
Default: null
removeCopyright
Whitelabeling. Removes copyright.
Attribute: remove-copyright
DOM property: removeCopyright
This feature is available on some paid plans.
Type: boolean
Default: false