Linting
parent
e48bd97bf7
commit
73bc060f57
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue