/ali-oss-react

ali-oss-react

Primary LanguageTypeScriptMIT LicenseMIT

Welcome to ali-oss-react 👋

Build Status NPM Download NPM Version NPM License PRs Welcome

React componet for ali-oss 📦

Install

yarn install ali-oss-react

Usage

Check Demo

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

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator