# vue-file-upload **Repository Path**: mirrors_FranckFreiburger/vue-file-upload ## Basic Information - **Project Name**: vue-file-upload - **Description**: File upload component for Vue.js 2 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-04-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-file-upload File upload component * drag and drop / file chooser * multiple upload (except for IE9) * add more files during upload * overall progress bar * no dependency ![demo](https://cloud.githubusercontent.com/assets/25509586/25576519/15bbca56-2e60-11e7-84ac-691f5be31de4.gif) ## Browser support Same browser support as [Vue.js 2](https://github.com/vuejs/vue/blob/dev/README.md) ## Example ``` ``` ## Install ``` npm install --save @franck.freiburger/vue-file-upload ``` ## API ### Properties #### :url string Target url for the uploaded files (post multipart/form-data). #### :multiple boolean, default: false Allow multiple files to be uploaded simultaneously. #### :image boolean, default: false Indicate that you wish to upload images. #### :capture boolean, default: false Indicates that the capture of media directly from the device's environment using a media capture mechanism is preferred. See [capture attribute](https://www.w3.org/TR/html-media-capture/#the-capture-attribute) #### :accept function(filename) returns boolean Called before a file is about to be uploaded. Return `false` to reject the upload, otherwise return `true`. `filename`: The filename (without path) of the file. By default any file is accepted. #### :done function(status, responseText, feedback) Called when a file or a set of files has been uploaded. `status`: HTTP status of the upload or `undefined` if no status is available (IE9). `responseText`: reponse of the server. `feedback`: function you can call to give a positive or negative (`true`/`false`) UI feedback about the upload. By default, if the property is not defined, a positive feedback is send for HTTP status 2xx and 3xx #### :data object Extra data sent with the files. ### Slots #### default slot This slot is included at the center of the component. exemple: ``` ``` ![using default slot](https://cloud.githubusercontent.com/assets/25509586/25568109/39c755a0-2dfc-11e7-8bae-3a3be2e483ac.png) ## Credits [ Franck Freiburger](https://www.franck-freiburger.com)