File inputs allows the user to pick one or multiple files. It can also filter the file type just like a normal input file or select multiple files.
md-file
works just like a regular md-input
component. This means that you can pass any md-input
prop to md-file
, like placeholder, required and disabled, for example.The following options can be applied to file component:
Name | Description | Value |
---|---|---|
md-change | Emits a FileList. Triggered every time a file is selected. | FileList |
<input type="file">
attributes, such as multiple and accept, can be used on md-field
.