Option objectStorageSetPublicRead (#6645)
This commit is contained in:
parent
bb342c7601
commit
ee0a445590
7 changed files with 34 additions and 0 deletions
|
@ -212,6 +212,7 @@ async function upload(key: string, stream: fs.ReadStream | Buffer, type: string,
|
|||
} as S3.PutObjectRequest;
|
||||
|
||||
if (filename) params.ContentDisposition = contentDisposition('inline', filename);
|
||||
if (meta.objectStorageSetPublicRead) params.ACL = 'public-read';
|
||||
|
||||
const s3 = getS3(meta);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue