diff options
author | Christoph (Sheogorath) Kern | 2018-01-29 15:53:14 +0100 |
---|---|---|
committer | GitHub | 2018-01-29 15:53:14 +0100 |
commit | e18e05541c52908034b672a2abe79a1c51df5607 (patch) | |
tree | 1d7f23195aebec9b127015b48b73c7333ef6f07f /lib/web/imageRouter.js | |
parent | d8766bbc081fde4b7169047f63f9b944fa555684 (diff) | |
parent | bd92010dd2e16d6fd87012ebd17fde0e9c01c4f6 (diff) |
Merge pull request #705 from SISheogorath/fix/camelcaseConfig
Remove camel case from `imageuploadtype` in config
Diffstat (limited to '')
-rw-r--r-- | lib/web/imageRouter.js | 4 |
1 files changed, 2 insertions, 2 deletions
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]) |