Merge pull request #349 from nvsofts/fix_image_url

Fix image path problem when using filesystem backend
This commit is contained in:
Max Wu 2017-02-09 13:16:46 +08:00 committed by GitHub
commit a19163d68a

2
app.js
View file

@ -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;