Skip to content

Commit 4532e00

Browse files
committed
Revert "Include extension in S3 key (#1426)"
This reverts commit b82641d.
1 parent 6b1f3ba commit 4532e00

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

api/resolvers/upload.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ export default {
4949
}
5050

5151
const upload = await models.upload.create({ data: { ...fileParams } })
52-
53-
const extension = type.split('/')[1]
54-
const key = `${upload.id}.${extension}`
55-
return createPresignedPost({ key, type, size })
52+
return createPresignedPost({ key: String(upload.id), type, size })
5653
}
5754
}
5855
}

0 commit comments

Comments
 (0)