File Uploader Configuration
Uploadcare Widget is highly customizable through widget options. Most of the options can be set in one of the ways listed below. You can also implement mixed settings, i.e., when having multiple widgets; their general behavior can be set using global variables while some of them may run based on local attributes.
You can set widget options in the following ways:
- Interactively via the live config.
- Set widget options globally, on page load.
- Set widget options locally, when a new widget instance is created.
- Via the
Note, our live config will also provide you with ready-made code snippets holding all the set options as local attributes.
<script> tag. For example,
UPLOADCARE_PUBLIC_KEY = 'demopublickey';
UPLOADCARE_LOCALE = 'ru';
Local options are specified in the target
<input> tag as
data-* attributes. For example,
<input type="hidden" role="uploadcare-uploader"
Most of the widget options can also be set within the