master
Mark Moffat 2019-06-11 14:42:14 +09:30
parent e48bd97bf7
commit 73bc060f57
1 changed files with 1 additions and 4 deletions

View File

@ -487,9 +487,6 @@ router.post('/admin/file/upload', common.restrict, common.checkAccess, upload.si
} }
}); });
}else{ }else{
// delete the temp file.
fs.unlinkSync(file.path);
// Redirect to error // Redirect to error
req.session.message = 'File upload error. Please select a file.'; req.session.message = 'File upload error. Please select a file.';
req.session.messageType = 'danger'; req.session.messageType = 'danger';