upload large files as chunks
*note: This package works well with pionl laravel-chunk-upload
Require this package with npm using the following command:
npm i --save vuejs-chunks-upload
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.