ActivityPub-federated video streaming platform using P2P directly in your web browser
Set ACL when uploading objects
Chocobozzz0d4a3c62ab30
diff --git a/server/lib/object-storage/shared/object-storage-helpers.ts b/server/lib/object-storage/shared/object-storage-helpers.tsindex e232169074..b53b94b96b 100644--- a/server/lib/object-storage/shared/object-storage-helpers.ts+++ b/server/lib/object-storage/shared/object-storage-helpers.ts@@ -146,7 +146,8 @@ async function objectStoragePut (options: {const command = new PutObjectCommand({Bucket: bucketInfo.BUCKET_NAME,Key: buildKey(objectStorageKey, bucketInfo),- Body: content+ Body: content,+ ACL: 'public-read'})await getClient().send(command)@@ -168,7 +169,8 @@ async function multiPartUpload (options: {const createMultipartCommand = new CreateMultipartUploadCommand({Bucket: bucketInfo.BUCKET_NAME,- Key: key+ Key: key,+ ACL: 'public-read'})const createResponse = await s3Client.send(createMultipartCommand)