Join image path with config.serverurl
This commit is contained in:
parent
8db6624ae9
commit
4d3672ae5d
1 changed files with 3 additions and 1 deletions
4
app.js
4
app.js
|
@ -421,8 +421,10 @@ app.post('/uploadimage', function (req, res) {
|
||||||
try {
|
try {
|
||||||
switch (config.imageUploadType) {
|
switch (config.imageUploadType) {
|
||||||
case 'filesystem':
|
case 'filesystem':
|
||||||
|
var path = require('path');
|
||||||
|
|
||||||
res.send({
|
res.send({
|
||||||
link: files.image.path.match(/^public(.+$)/)[1]
|
link: path.join(config.serverurl, files.image.path.match(/^public(.+$)/)[1])
|
||||||
});
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue