summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Wu2017-02-09 13:16:46 +0800
committerGitHub2017-02-09 13:16:46 +0800
commita19163d68a5c69c18637b3f617cc912dab500524 (patch)
treea5322736f39e83b5424b88d11f5cde3af15e7ce9
parent86c5d47afeaf070e7e5f8b651e8ecf7b350c3463 (diff)
parent90c83ebd5b5610652c9bc8ae81299e85fe7056ef (diff)
Merge pull request #349 from nvsofts/fix_image_url
Fix image path problem when using filesystem backend
Diffstat (limited to '')
-rw-r--r--app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.js b/app.js
index ee82fab5..67a62540 100644
--- a/app.js
+++ b/app.js
@@ -502,7 +502,7 @@ app.post('/uploadimage', function (req, res) {
switch (config.imageUploadType) {
case 'filesystem':
res.send({
- link: url.resolve(config.serverurl, files.image.path.match(/^public(.+$)/)[1])
+ link: url.resolve(config.serverurl + '/', files.image.path.match(/^public\/(.+$)/)[1])
});
break;