From 90c83ebd5b5610652c9bc8ae81299e85fe7056ef Mon Sep 17 00:00:00 2001 From: NV Date: Thu, 9 Feb 2017 14:07:36 +0900 Subject: Fix image path problem when using filesystem backend --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3