1.1.0 • Published 4 years ago

vue-slice-file-uploader v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

vue-slice-file-uploader

npm1.0.8 Build Status vue2

Table of contents

Installation

npm install --save vue-slice-file-uploader

import

import Vue from 'vue'
import VueSliceFileUploader from 'vue-slice-file-uploader'

Vue.component('vue-slice-file-uploader', VueSliceFileUploader)

Documents

PropertyTypeDefaultDescription
:nameString''name attribute of the file upload button
:idString''id attribute of the file upload button
:acceptString''accept attribute of the file upload button
:captureString''capture attribute of the file upload button
:disabledBooleanfalsedisabled attribute of the file upload button
:actionString''url of the slice upload request
:uniqueBooleanfalseeither return MD5 hash or not
:auto-uploadBooleanfalseeither auto upload after file change event or not
:each-sizeNumber2each chunk size (MB)
:headersObject{}headers of the slice upload request
:dataObject{}extra info of the slice upload request
:on-changeFunction(file) => {}change callback of the file upload button
:before-uploadFunction(file, chunkList) => truereturn false => stop upload, return true => start upload, return a chunkList => format the payload of slice upload request and start upload
:requestFunction(file, chunkList) => {}customize slice upload request, will cover the default action
:on-cancelFunction(file) => {}cancel callback of slice upload
:on-successFunction(file) => {}success callback of slice upload
:on-errorFunction(file) => {}error callback of slice upload
1.1.0

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago