mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
closes #3851
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user