fixed filename of first uploaded image, added a setUserFields method to user.js

v1.18.x
Baris Soner Usakli 12 years ago
parent f7217f2d12
commit cacc732015

@ -99,7 +99,7 @@ var user = require('./../user.js'),
user.getUserField(req.user.uid, 'uploadedpicture', function(oldpicture) {
if(!oldpicture) {
uploadUserPicture(req.user.uid, req.files.userPhoto.name, req.files.userPhoto.path, res);
uploadUserPicture(req.user.uid, path.extname(req.files.userPhoto.name), req.files.userPhoto.path, res);
return;
}

Loading…
Cancel
Save