Welcome to ali-oss-react 👋
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 ="xxxx" ="xxxx" ="xxxx" ="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