summaryrefslogtreecommitdiff
path: root/lib/web
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2018-06-23 23:42:15 +0200
committerGitHub2018-06-23 23:42:15 +0200
commit7c7cc289f2c2b2e33a32ea32a6e97ea1410cc63e (patch)
treeff8bb16ab594d3d374d52c342a8f87849c1fe922 /lib/web
parent87824d21e82237d205b2d109516214c1f4d40c38 (diff)
parenta2608c319a8c31f9b173dbb5d00221d3ad96739b (diff)
Merge pull request #853 from SISheogorath/fix/imgUpload
Fix possible error if HackMD is started with wrong workdir
Diffstat (limited to '')
-rw-r--r--lib/web/imageRouter/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web/imageRouter/index.js b/lib/web/imageRouter/index.js
index f7e031af..f3c2decf 100644
--- a/lib/web/imageRouter/index.js
+++ b/lib/web/imageRouter/index.js
@@ -16,7 +16,7 @@ imageRouter.post('/uploadimage', function (req, res) {
form.keepExtensions = true
if (config.imageUploadType === 'filesystem') {
- form.uploadDir = 'public/uploads'
+ form.uploadDir = config.uploadsPath
}
form.parse(req, function (err, fields, files) {