fix image url in relative_path install in post

v1.18.x
Barış Soner Uşaklı 10 years ago
parent 7baa0e97fc
commit 3f92984be2

@ -5,6 +5,7 @@ var uploadsController = {},
fs = require('fs'),
path = require('path'),
async = require('async'),
nconf = require('nconf'),
validator = require('validator'),
meta = require('../meta'),
@ -128,7 +129,7 @@ function uploadFile(uid, uploadedFile, callback) {
}
callback(null, {
url: upload.url,
url: nconf.get('relative_path') + upload.url,
name: uploadedFile.name
});
});

Loading…
Cancel
Save