mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
98ce19e918
@ -100,7 +100,7 @@ async function multipart(ctx: Context, next: Next) {
|
||||
return ctx.throw(400, err);
|
||||
}
|
||||
ctx.logger.error(err);
|
||||
return ctx.throw(500);
|
||||
return ctx.throw(500, err);
|
||||
}
|
||||
|
||||
const values = getFileData(ctx);
|
||||
|
@ -19,6 +19,8 @@ export default class extends StorageType {
|
||||
const { accessKeyId, secretAccessKey, bucket, acl = 'public-read', ...options } = storage.options;
|
||||
if (options.endpoint) {
|
||||
options.forcePathStyle = true;
|
||||
} else {
|
||||
options.endpoint = undefined;
|
||||
}
|
||||
const s3 = new S3Client({
|
||||
...options,
|
||||
|
Loading…
x
Reference in New Issue
Block a user