diff --git a/src/controllers/uploads.js b/src/controllers/uploads.js index da87ba9316..5c04d4d483 100644 --- a/src/controllers/uploads.js +++ b/src/controllers/uploads.js @@ -72,7 +72,7 @@ uploadsController.uploadThumb = function(req, res, next) { } if (uploadedFile.type.match(/image./)) { - var size = meta.config.topicThumbSize || 120; + var size = parseInt(meta.config.topicThumbSize, 10) || 120; image.resizeImage({ path: uploadedFile.path, extension: path.extname(uploadedFile.name),