Skip to content

Releases: d2phap/vue-file-selector

v2.0.2 Vuejs 3 and TypeScript

17 Jun 08:19
19fab17
Compare
Choose a tag to compare

Breaking changes

  • Minimum Vuejs version: 3.2.37
  • The type of files argument in all events changed from FileList to File[]
  • 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

15 Nov 10:21
Compare
Choose a tag to compare

New

  • Updated nice demo project

Improvement

  • On dragenter event, class fs-drag-enter is added to fs-file-selector instead of fs-droppable

Bug fix

  • Prevent dragleave event triggered while user is dragging files over child elements

The first release v0.1.0

01 Nov 04:51
Compare
Choose a tag to compare

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 ⭐️