new chat with material ui

This commit is contained in:
Cassio Santos
2020-06-11 09:26:12 -03:00
parent d91c0c5155
commit d30e61033b
8 changed files with 247 additions and 63 deletions

View File

@@ -19,7 +19,7 @@ const fileStorage = multer.diskStorage({
cb(null, "public");
},
filename: (req, file, cb) => {
cb(null, new Date().getTime() + "-" + file.originalname);
cb(null, new Date().getTime() + "-" + file.originalname.replace(/\s/g, ""));
},
});