mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 14:39:25 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
8d896bbb9b
@ -17,6 +17,9 @@ export default class extends StorageType {
|
||||
const { S3Client } = require('@aws-sdk/client-s3');
|
||||
const multerS3 = require('multer-s3');
|
||||
const { accessKeyId, secretAccessKey, bucket, acl = 'public-read', ...options } = storage.options;
|
||||
if (options.endpoint) {
|
||||
options.forcePathStyle = true;
|
||||
}
|
||||
const s3 = new S3Client({
|
||||
...options,
|
||||
credentials: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user