Renaming an uploaded file using Multer doesn't work (Express.js)
问题 I'm trying to upload a file from a HTML form using Express.js and Multer. I've managed to save the file to the desired location (a folder named uploads ). However, I'd like to rename the file while uploading it because, by default, Multer gives it a strange name such as: 5257ee6b035926ca99923297c224a1bb Might be a hexadecimal time stamp or so but I need a more explicit name in order to call a script on it later. I've followed the explanation found here but it doesn't do anything more than it