# FormFile
FormFile
is a custom component wrapper around the Bootstrap-vue Form File
component. The purpose of this component is to upload files to the BMC.
To use this component:
- Import it into the single file component (SFC)
- Add the
<form-file />
tag - Add the optional
id
,disabled
,accept
andstate
prop as required
Learn more about the Bootstrap-vue Form File component (opens new window)
# Optional properties
id
- Used to set theid
attribute on the rendered content, and used as the base to generate any additional element IDs as neededdisabled
- When set totrue
, disables the component's functionality and places it in a disabled stateaccept
- Set value to specify which file types to allowstate
- Controls the validation state appearance of the component.true
for valid,false
for invalid, ornull
for no validation state
# Example of form file
<form-file
id="image-file"
accept=".tar"
>
</form-file>
← Buttons InfoTooltip →