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

@@ -96,10 +96,6 @@ uploadsController.uploadGroupCover = function(data, next) {
uploadImage(0, data, next);
};
uploadsController.uploadUserCover = function(data, next) {
uploadImage(data.uid, data, next);
};
function uploadImage(uid, image, callback) {
if (plugins.hasListeners('filter:uploadImage')) {
return plugins.fireHook('filter:uploadImage', {image: image, uid: uid}, callback);