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

# UI and localization options

> File Uploader options: ui and localization.

Options that change how the uploader looks and which language it speaks.

Related guides: [Styling](/docs/file-uploader/styling/), [Localization](/docs/file-uploader/localization/), [Dynamic button](/docs/file-uploader/dynamic-button/).

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

### filesViewMode Since v1.15.0 \[#files-view-mode]

Defines the view mode for the file list.

Available values:

* `list`: list view mode
* `grid`: grid view mode

Attribute: `files-view-mode`

DOM property: `filesViewMode`

Default: `'list'`

### gridShowFileNames Since v1.15.0 \[#grid-show-file-names]

Show file names in the grid view mode.

Attribute: `grid-show-file-names`

DOM property: `gridShowFileNames`

Type: `boolean`

Default: `false`

### thumbSize \[#thumb-size]

Thumbnail size for images.

Attribute: `thumb-size`

DOM property: `thumbSize`

Type: `number`

Default: `76`

### showEmptyList \[#show-empty-list]

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 \[#dynamic-button-view-mode]

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 \[#dynamic-button-show-first-icon]

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 \[#modal-presentation]

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 \[#locale-name]

Specifies the locale to use for localization.

See [Localization](/docs/file-uploader/localization/) for details.

Attribute: `locale-name`

DOM property: `localeName`

Type: `string`

Default: `"en"`

### localeDefinitionOverride Since v0.38.0 \[#locale-definition-override]

Works as [DOM property](/docs/file-uploader/configuration/#how-to-define-dom-properties) only.

Defines overrides to the specified locale definition. It allows easy tweaking of
the localization without defining a new locale from scratch.

See [Localization](/docs/file-uploader/localization/) for details.

Attribute: `-`

DOM property: `localeDefinitionOverride`

Type: `Record<string, Record<string, string>>`

Default: `null`

### iconHrefResolver Since v0.40.0 \[#icon-href-resolver]

Works as [DOM property](/docs/file-uploader/configuration/#how-to-define-dom-properties) 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](/docs/file-uploader/styling/#icons) for details.

Attribute: `-`

DOM property: `iconHrefResolver`

Type: `(iconName: string) => (string | undefined)`

Default: `null`

### removeCopyright \[#remove-copyright]

Whitelabeling. Removes copyright.

Attribute: `remove-copyright`

DOM property: `removeCopyright`

This feature is available on some [paid plans](https://uploadcare.com/pricing/).

Type: `boolean`

Default: `false`