uploader-for-alioss

0.0.8 • Public • Published

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

Example

examplePic

Package Sidebar

Install

npm i uploader-for-alioss

Weekly Downloads

0

Version

0.0.8

License

MIT

Unpacked Size

35.1 kB

Total Files

3

Last publish

Collaborators

  • hugeface