vuejs-chunks-upload

1.0.1 • Public • Published

vuejs-chunks-upload

upload large files as chunks

![image](image

Installation:

Require this package with npm using the following command:

npm i --save vuejs-chunks-upload

Usage

*note: this package used with axios So you have to install axios first

Example:

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);
                    }
                );
        },
}

License

Laravel vuejs-chunks-upload is free software licensed under the MIT license.

Package Sidebar

Install

npm i vuejs-chunks-upload

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

7.89 kB

Total Files

8

Last publish

Collaborators

  • hussein4alaa