You are reading the documentation for version 2.2. Magento 2.3 is the latest version available. Ensure you are reading the documentation for your version of Magento.

File component

The File component implements the HTML <input type="file"> form field.

Configuration options

Option Description Type Default
component The path to the component’s JS constructor in terms of RequireJS. String Magento_Ui/js/form/element/text
label Field label String ''
links
  • value
Links the component's value property with provider using the declared in the dataScope property of the parent component. Object
  • Boolean
false
disabled Initial component's state. When set to true, users can't take action on the element. Boolean false
visible Initial component's visibility. When set to false, the display: none CSS style is added to the component's DOM block. Boolean true