EXPO VER 2 - Ensure uploads are unique.

This commit is contained in:
Patrick Fic
2021-06-03 10:49:22 -07:00
parent 642568bc01
commit fb77cfea15
4 changed files with 11 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ export const handleUpload = async (ev, context) => {
let key = `${bodyshop.id}/${jobId}/${(filename || newFile.data.name).replace(
/\.[^/.]+$/,
""
)}`;
)}-${new Date().getTime()}`;
const res = await uploadToCloudinary(
key,