diff options
author | Max Wu | 2017-02-09 13:16:46 +0800 |
---|---|---|
committer | GitHub | 2017-02-09 13:16:46 +0800 |
commit | a19163d68a5c69c18637b3f617cc912dab500524 (patch) | |
tree | a5322736f39e83b5424b88d11f5cde3af15e7ce9 | |
parent | 86c5d47afeaf070e7e5f8b651e8ecf7b350c3463 (diff) | |
parent | 90c83ebd5b5610652c9bc8ae81299e85fe7056ef (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.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |