Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TerryZ/v-uploader

A Vue2 plugin make files upload simple and easier, single file upload with image preview, multiple upload with drag and drop
https://github.com/TerryZ/v-uploader

file-upload fine-uploader javascript multiple-files-upload uploader vue vuejs2

Last synced: about 1 month ago
JSON representation

A Vue2 plugin make files upload simple and easier, single file upload with image preview, multiple upload with drag and drop

Awesome Lists containing this project

README

        



v-uploader

v-uploader


A Vue2 plugin make files upload simple and easier,

single file upload with image preview, multiple upload with drag and drop











## Examples and Documentation

Explorer on

- [English site](https://terryz.github.io/vue/#/upload)
- [国内站点](https://terryz.gitee.io/vue/#/upload)

## Plugin preview

Single file upload with image preview

v-uploader-single

Multiple files upload with drag and drop

v-uploader-multiple

## Installation

```
npm i v-uploader -S
```

Include and install plugin in your `main.js` file.

```js
import Vue from 'vue'
import Uploader from 'v-uploader'
import { DialogAlert } from 'v-dialogs'

/**
* v-uploader plugin global config
*/
const uploaderConfig = {
uploadFileUrl: 'https://some-site/upload',
deleteFileUrl: 'https://some-site/delete',
showMessage: (vue, message) => {
// using v-dialogs to display error message
DialogAlert(message, { messageType: 'error' })
}
}

// Globally install plugin with options
Vue.use(Uploader, uploaderConfig)
```

Use **[v-dialogs](https://github.com/TerryZ/v-dialogs)** plugin to display message for example

## Dependencies

- [fine-uploader](https://github.com/FineUploader/fine-uploader)
- [holderjs](https://github.com/imsky/holder)

## License

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FTerryZ%2Fv-uploader.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FTerryZ%2Fv-uploader?ref=badge_large)