mirror of
https://github.com/status-im/codimd.git
synced 2025-01-14 20:44:49 +00:00
Merge pull request #349 from nvsofts/fix_image_url
Fix image path problem when using filesystem backend
This commit is contained in:
commit
a19163d68a
2
app.js
2
app.js
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user