Node.js based forum software built for the modern web
fix urls
barisusakli61c73b7761f6
diff --git a/src/controllers/accounts.js b/src/controllers/accounts.jsindex 4846ae6839..06f2edd9b9 100644--- a/src/controllers/accounts.js+++ b/src/controllers/accounts.js@@ -493,7 +493,7 @@ accountsController.uploadPicture = function (req, res, next) {return;}- var absolutePath = path.join(nconf.get('base_dir'), nconf.get('upload_path'), path.basename(oldpicture));+ var absolutePath = path.join(nconf.get('base_dir'), nconf.get('upload_path'), 'profile', path.basename(oldpicture));fs.unlink(absolutePath, function (err) {if (err) {diff --git a/src/file.js b/src/file.jsindex eb0ba7f1b2..9433dfb40b 100644--- a/src/file.js+++ b/src/file.js@@ -18,7 +18,7 @@ file.saveFileToLocal = function(filename, folder, tempPath, callback) {is.on('end', function () {callback(null, {- url: nconf.get('upload_url') + filename+ url: nconf.get('upload_url') + folder + '/' + filename});});