AisFileUpload
Usage
import { AisFileUpload } from "@ais-public/ais-components"
Default behaviour
Selected file:
Props
native
multiple
drop-zone
If you try to use both native and drop-zone prop then drop-zone prop will take priority.
variants
size
accept
You can pass comma seperated string.
Example .jpeg,.csv - only jpeg and csv files will be visible while selecting files.
disabled
Selected Files
AisFileUpload is a controlled component, and the v-model property owns the selected files. The component always shows what the model holds, so the parent component can initialize, interrogate, and edit the file selection. An internal representation is only used if no model is bound. The example below illustrates how a parent component can clear the file upload component's selection.
Event
This component emits select event.
Selected file: