🔱: [client] sync upgrade with 4 commits [trident-sync]

perf: upload sdk换成aws-s3
feat: upload 支持s3 minio

https://github.com/fast-crud/fast-crud/issues/149
feat: fs-form-wrapper支持多实例

https://github.com/fast-crud/fast-crud/issues/150
This commit is contained in:
GitHub Actions Bot
2023-03-10 19:24:05 +00:00
parent 52a167c647
commit 336faa46b2
22 changed files with 514 additions and 189 deletions
@@ -169,6 +169,28 @@ function install(app: any, options: any = {}) {
},
domain: "http://d2p.file.handsfree.work/"
},
s3: {
bucket: "fast-crud",
sdkOpts: {
s3ForcePathStyle: true,
signatureVersion: "v4",
region: "us-east-1",
forcePathStyle: true,
endpoint: "https://play.min.io",
credentials: {
accessKeyId: "Q3AM3UQ867SPQQA43P2F", //访问登录名
secretAccessKey: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG" //访问密码
}
},
custom: {
// buildKey,获取授权等接口中将会传入
},
successHandle(ret: any) {
// 上传完成后可以在此处处理结果,修改url什么的
console.log("success handle:", ret);
return ret;
}
},
form: {
action: "http://www.docmirror.cn:7070/api/upload/form/upload",
name: "file",