mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 08:20:36 +01:00
fixed users page so that all reps and post counts are comma delimited, some image upload fixes
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user