We need to check if the folder for dumping resumes exists in the first place. The path for the location is built using
path.join(__dirname + '/../resumes/' + config.SemesterID)
We could check that it exists before executing the callback(line 16) in multer.js and create the directories if they don't exist already.
We need to check if the folder for dumping resumes exists in the first place. The path for the location is built using
path.join(__dirname + '/../resumes/' + config.SemesterID)
We could check that it exists before executing the callback(line 16) in multer.js and create the directories if they don't exist already.
EDIT: change path