Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2024-11-22 12:33:29 +00:00
commit a72c4e546b

View File

@ -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: {