vuejs-chunks-upload
Version:
upload large files as chunks
49 lines (40 loc) • 1.17 kB
Markdown
upload large files as chunks

Require this package with npm using the following command:
```sh
npm i --save vuejs-chunks-upload
```
```sh
import { uploadService } from 'vue-upload-chunks/dist';
.
.
.
.
methods: {
upload() {
this.progress = 0;
this.result = null;
uploadService.chunk('http://localhost/api/upload', this.file,
// Progress
percent => {
this.progress = percent;
},
// Success
res => {
console.log(res);
},
// Error
err => {
console.log(err);
}
);
},
}
```
Laravel vuejs-chunks-upload is free software licensed under the MIT license.