依托于Minion的文件上传包,提供上传文件实体类。包含上传文件方法
import Uploader from 'ascs-upload-file';
const uploader = new Uploader(option);
uploader(file);
- endPoint: string, Minio地址;
- port: number, 端口;
- useSSL: boolean, 是否使用SSL;
- accessKey: string;
- secretKey: string;
- bucketName: string, 储存桶名称;
- upload: 上传文件
- readFile:读取文件转base64