@ -117,6 +117,7 @@ uploadsController.uploadThumb = async function (req, res, next) {
throw new Error('[[error:invalid-file]]');
}
await image.isFileTypeAllowed(uploadedFile.path);
await image.checkDimensions(uploadedFile.path);
await image.resizeImage({
path: uploadedFile.path,
width: meta.config.topicThumbSize,
@ -47,6 +47,7 @@ module.exports = function (Topics) {
await image.isFileTypeAllowed(pathToUpload);
await image.checkDimensions(pathToUpload);
path: pathToUpload,