From bd92010dd2e16d6fd87012ebd17fde0e9c01c4f6 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Fri, 26 Jan 2018 14:00:48 +0100 Subject: Remove camel case from `imageuploadtype` in config This removes the only camel cased option of the config options **we** added to the config.json. In auth provider's config parts are a lot of camel cased options provided. We shouldn't touch them to keep them as similar as possible to the examples. Fixes #315 Signed-off-by: Sheogorath --- lib/web/imageRouter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/web') diff --git a/lib/web/imageRouter.js b/lib/web/imageRouter.js index b17cccbd..483be64b 100644 --- a/lib/web/imageRouter.js +++ b/lib/web/imageRouter.js @@ -19,7 +19,7 @@ imageRouter.post('/uploadimage', function (req, res) { form.keepExtensions = true - if (config.imageUploadType === 'filesystem') { + if (config.imageuploadtype === 'filesystem') { form.uploadDir = 'public/uploads' } @@ -30,7 +30,7 @@ imageRouter.post('/uploadimage', function (req, res) { if (config.debug) { logger.info('SERVER received uploadimage: ' + JSON.stringify(files.image)) } try { - switch (config.imageUploadType) { + switch (config.imageuploadtype) { case 'filesystem': res.send({ link: url.resolve(config.serverurl + '/', files.image.path.match(/^public\/(.+$)/)[1]) -- cgit v1.2.3