Fix image path problem when using filesystem backend

This commit is contained in:
NV 2017-02-09 14:07:36 +09:00
parent 6587e7ccc6
commit 90c83ebd5b

2
app.js
View file

@ -502,7 +502,7 @@ app.post('/uploadimage', function (req, res) {
switch (config.imageUploadType) { switch (config.imageUploadType) {
case 'filesystem': case 'filesystem':
res.send({ 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; break;