Skip to content

Commit a19163d

Browse files
authored
Merge pull request #349 from nvsofts/fix_image_url
Fix image path problem when using filesystem backend
2 parents 86c5d47 + 90c83eb commit a19163d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ app.post('/uploadimage', function (req, res) {
502502
switch (config.imageUploadType) {
503503
case 'filesystem':
504504
res.send({
505-
link: url.resolve(config.serverurl, files.image.path.match(/^public(.+$)/)[1])
505+
link: url.resolve(config.serverurl + '/', files.image.path.match(/^public\/(.+$)/)[1])
506506
});
507507

508508
break;

0 commit comments

Comments
 (0)