@ -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
});