summaryrefslogtreecommitdiff
path: root/lib/web/imageRouter.js
diff options
context:
space:
mode:
authorSheogorath2018-01-26 14:00:48 +0100
committerSheogorath2018-01-27 23:50:15 +0100
commitbd92010dd2e16d6fd87012ebd17fde0e9c01c4f6 (patch)
tree24c73d76df0a3691b88e5d8166fd463811d5e78a /lib/web/imageRouter.js
parent0138911274cec46e83ebb3adc08c85f341d6b81e (diff)
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 <sheogorath@shivering-isles.com>
Diffstat (limited to '')
-rw-r--r--lib/web/imageRouter.js4
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])