mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
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>
This commit is contained in:
parent
0138911274
commit
bd92010dd2
7 changed files with 21 additions and 13 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue