Revert "Include extension in S3 key (#1426)"

This reverts commit b82641d1bd.
This commit is contained in:
k00b 2024-10-07 13:20:02 -05:00
parent 6b1f3ba8ef
commit 4532e00085
1 changed files with 1 additions and 4 deletions

View File

@ -49,10 +49,7 @@ export default {
}
const upload = await models.upload.create({ data: { ...fileParams } })
const extension = type.split('/')[1]
const key = `${upload.id}.${extension}`
return createPresignedPost({ key, type, size })
return createPresignedPost({ key: String(upload.id), type, size })
}
}
}