From 1ebe140ab34c160c149c985ec4c6063183ffe24a Mon Sep 17 00:00:00 2001 From: Sypher-X <65622162+Sypher-X@users.noreply.github.com> Date: Sat, 5 Oct 2024 19:53:12 +0100 Subject: [PATCH] Update games.js make asset public after uploading --- server/functions/api/routes/games.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/functions/api/routes/games.js b/server/functions/api/routes/games.js index e0479f0..2069003 100644 --- a/server/functions/api/routes/games.js +++ b/server/functions/api/routes/games.js @@ -112,7 +112,8 @@ router.post('/upload', authenticateToken, (req, res, next) => { Bucket: process.env.AWS_S3_BUCKET_NAME, Key: rbxlKey, Body: req.files['rbxlFile'][0].buffer, - ContentType: 'application/octet-stream' + ContentType: 'application/octet-stream', + ACL: 'public-read' }).promise(); const asset = new Asset({