A multiple file uploader based Ali OSS to help you upload file simply and be clearly on progress.
Using npm:
npm install --save ali-oss-uploader
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