mirror of
https://github.com/status-im/codimd.git
synced 2025-02-25 22:35:21 +00:00
Join image path with config.serverurl
This commit is contained in:
parent
8db6624ae9
commit
4d3672ae5d
4
app.js
4
app.js
@ -421,8 +421,10 @@ app.post('/uploadimage', function (req, res) {
|
||||
try {
|
||||
switch (config.imageUploadType) {
|
||||
case 'filesystem':
|
||||
var path = require('path');
|
||||
|
||||
res.send({
|
||||
link: files.image.path.match(/^public(.+$)/)[1]
|
||||
link: path.join(config.serverurl, files.image.path.match(/^public(.+$)/)[1])
|
||||
});
|
||||
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user