Fix SVG's not loading in multiplayer (#498)
* Session undefined * Fix S3 svg uploads
This commit is contained in:
parent
15784517e8
commit
f61c09fb55
3 changed files with 5 additions and 3 deletions
|
@ -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: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue