dont use post file upload for cover uploads
check cover upload file size against new setting
store cover uploads in profile folder
use `uid-profilecover` filename for cover uploads
This commit is contained in:
barisusakli
2015-11-07 18:34:40 -05:00
parent 35eb0faac8
commit 323cc165b6
6 changed files with 44 additions and 24 deletions

View File

@@ -122,9 +122,9 @@ editController.uploadPicture = function (req, res, next) {
editController.uploadCoverPicture = function(req, res, next) {
var params = JSON.parse(req.body.params);
user.updateCoverPicture({
file: req.files.files[0].path,
file: req.files.files[0],
uid: params.uid
}, function(err, image) {
if (err) {