VeeFileInput

An input component that allows the user to upload files to your application.

Source code

Click here to see the source code for this component on GitHub. Feel free to copy it and adjust it for your own use.

Installation

npx ui-thing@latest add vee-file-input

Usage

File upload

Why not use the VeeInput to accept file uploads? Well, we cannot force select a file from a user's device so the way how data binding works with file inputs and vee-validate is a bit different. According to the docs it is better to use the handleChange and handleBlur methods to handle the file input changes.

Add at least 2 files