summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNV2017-02-09 14:07:36 +0900
committerNV2017-02-09 14:07:36 +0900
commit90c83ebd5b5610652c9bc8ae81299e85fe7056ef (patch)
tree63b05ad7771921461c849230f53dbab6bddb1abf
parent6587e7ccc645a1207190a135f0454ddfc0cd9776 (diff)
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;