Releases: d2phap/vue-file-selector
Releases · d2phap/vue-file-selector
v2.0.2 Vuejs 3 and TypeScript
Breaking changes
- Minimum Vuejs version: 3.2.37
- The type of
files
argument in all events changed fromFileList
toFile[]
- The default CSS is not included by default. You need to import it to use:
import 'vue-file-selector/dist/main.css';
New
- Added types:
/** * Validates the selected files. * @returns `true` if the files are valid. * @returns `false` if the files are valid */ export declare type FsValidateFn = (files: File[]) => boolean; /** * The validation result. */ export declare type FsValidationResult = boolean | 'MULTIFILES_ERROR' | 'EXTENSION_ERROR' | 'FILE_SIZE_ERROR';
v0.6.0
The first release v0.1.0
This is the first release of this Vue plugin, features:
- Single or multiple files selection
- Drag-n-drop files selection
- Loading state option while processing file
- Validations:
- File extensions
- Multiple file selection
- Maximum file size
- Custom validation function
Install
npm i vue-file-selector@latest
Thank you!
Some of my other open source projects you may want to give it a star ⭐️