Skip to content

Commit 90c83eb

Browse files
committed
Fix image path problem when using filesystem backend
1 parent 6587e7c commit 90c83eb

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)