1.0.2 ā¢ Published 4 years ago
ali-oss-react v1.0.2
React componet for ali-oss š¦
Install
yarn install ali-oss-react
Usage
Props
Prop | Type | Required | Description |
---|---|---|---|
accessKeyId | string | true | Your accessKeyId |
accessKeySecret | string | true | Your accessKeySecret |
bucket | string | true | Your bucket name |
region | string | true | oss region |
beforeUpload | (file: RcFile, FileList: RcFile[]) => boolean | PromiseLike | false | beforeUpload callback |
name | string | false | file name |
onError | (err: Error) => void | false | onError callback |
onSuccess | (res: any, file: any) => void | false | onSuccess callback |
How
import AliOssReact from "./index.tsx";
<AliOssReact
region="xxxx"
accessKeyId="xxxx"
accessKeySecret="xxxx"
bucket="xxxx"
/>
Author
š¤ seiwhale
- Website: https://lisj.ml/
- Github: @seiwhale
Show your support
Give a āļø if this project helped you!
This README was generated with ā¤ļø by readme-md-generator