Revert "IO-1257 Accept special characters"

This reverts commit a8ad65000d.
This commit is contained in:
Patrick Fic
2021-07-16 14:42:12 -07:00
parent 990ec1a553
commit 54b483333f

View File

@@ -24,7 +24,7 @@ export const handleUpload = (ev, context) => {
const fileName = ev.file.name || ev.filename;
let key = `${bodyshop.id}/${jobId}/${fileName.replace(
/[^a-zA-Z ]/g,
/\.[^/.]+$/,
""
)}-${new Date().getTime()}`;
let extension = fileName.split(".").pop();