uploader-for-alioss
v0.0.8
Published
Ali-OSS based file uploader
Downloads
3
Readme
ali-oss-uploader(阿里云文件上传)
A multiple file uploader based Ali OSS to help you upload file simply and be clearly on progress.
Installation
Using npm:
npm install --save ali-oss-uploader
Usage
In main.js, import it and call the Vue.use() global method:
import AliOssUploader from 'ali-oss-uploader'
Vue.use(AliOssUploader)
Used in Vue file:
<ali-oss-uploader
region="oss region"
accessKeyId="your accessKeyId"
accessKeySecret="your accessKeySecret"
bucket="your bucket name"
successCallback="success handler"
failedCallback="failed handler"
allFinishedCallback="finished handler"
>
</ali-oss-uploader>
Necessary parameters:
- region: oss region
- accessKeyId: your accessKeyId
- accessKeySecret: your accessKeySecret
- bucket: your bucket name