Fix SVG's not loading in multiplayer (#498)

* Session undefined

* Fix S3 svg uploads
This commit is contained in:
Milo Hill 2022-01-12 13:36:19 +00:00 committed by GitHub
parent 15784517e8
commit f61c09fb55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -10,10 +10,11 @@ export default async function handler(req, res) {
const s3 = new aws.S3()
const post = await s3.createPresignedPost({
const post = s3.createPresignedPost({
Bucket: process.env.TL_AWS_BUCKET_NAME,
Fields: {
key: req.query.file,
'Content-Type': req.query.fileType,
},
Expires: 60, // seconds
Conditions: [