Revert "Include extension in S3 key (#1426)"
This reverts commit b82641d1bd
.
This commit is contained in:
parent
6b1f3ba8ef
commit
4532e00085
|
@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue