dont treat url as path, closes #5006

v1.18.x
barisusakli 9 years ago
parent bb80dc360e
commit a0ef96a6e1

@ -26,10 +26,9 @@ file.saveFileToLocal = function(filename, folder, tempPath, callback) {
var is = fs.createReadStream(tempPath);
var os = fs.createWriteStream(uploadPath);
is.on('end', function () {
callback(null, {
url: path.join(nconf.get('upload_url'), folder, filename),
url: nconf.get('upload_url') + '/' + folder + '/' + filename,
path: uploadPath
});
});

Loading…
Cancel
Save