feat: Add support for private files to file module (#8169)
This commit is contained in:
@@ -92,14 +92,12 @@ export class S3FileService extends AbstractFileProviderService {
|
||||
|
||||
const content = Buffer.from(file.content, "binary")
|
||||
const command = new PutObjectCommand({
|
||||
// TODO: Add support for private files
|
||||
// We probably also want to support a separate bucket altogether for private files
|
||||
// protected private_bucket_: string
|
||||
// protected private_access_key_id_: string
|
||||
// protected private_secret_access_key_: string
|
||||
|
||||
// ACL: options.acl ?? (options.isProtected ? "private" : "public-read"),
|
||||
ACL: "public-read",
|
||||
ACL: file.access === "public" ? "public-read" : "private",
|
||||
Bucket: this.config_.bucket,
|
||||
Body: content,
|
||||
Key: fileKey,
|
||||
|
||||
Reference in New Issue
Block a user