mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 23:10:21 +01:00
upload changes, just pass filename to plugin or base64 data
This commit is contained in:
@@ -172,9 +172,7 @@ var fs = require('fs'),
|
||||
}
|
||||
|
||||
if(plugins.hasListeners('filter:uploadImage')) {
|
||||
image.convertImageToBase64(req.files.userPhoto.path, function(err, image64) {
|
||||
plugins.fireHook('filter:uploadImage', {data:image64, name:filename}, done);
|
||||
});
|
||||
plugins.fireHook('filter:uploadImage', {file: req.files.userPhoto.path, name: filename}, done);
|
||||
} else {
|
||||
|
||||
user.getUserField(req.user.uid, 'uploadedpicture', function (err, oldpicture) {
|
||||
|
||||
Reference in New Issue
Block a user