fixed users page so that all reps and post counts are comma delimited, some image upload fixes

This commit is contained in:
Baris Soner Usakli
2013-05-13 12:45:40 -04:00
parent e476e27807
commit 5785b16ae9
3 changed files with 31 additions and 11 deletions

View File

@@ -233,6 +233,14 @@ var express = require('express'),
});
function uploadUserPicture(uid, filename, tempPath, res) {
if(!filename){
res.send({
error: 'Error uploading file! Error : Invalid file name!'
});
return;
}
var uploadPath = config['upload_path'] + uid + '-' + filename;
fs.rename(