testtspk
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

文件上传

基础

依托于Minion的文件上传包,提供上传文件实体类。包含上传文件方法

使用

import Uploader from 'ascs-upload-file';
const uploader = new Uploader(option);

uploader(file);

option参数

  • endPoint: string, Minio地址;
  • port: number, 端口;
  • useSSL: boolean, 是否使用SSL;
  • accessKey: string;
  • secretKey: string;
  • bucketName: string, 储存桶名称;

方法

  • upload: 上传文件
  • readFile:读取文件转base64

Readme

Keywords

none

Package Sidebar

Install

npm i testtspk

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

14.3 kB

Total Files

11

Last publish

Collaborators

  • jevin