mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +01:00
feat: add folder to filter:uploadImage and filter:uploadFile
This commit is contained in:
@@ -149,6 +149,7 @@ image.uploadImage = async function (filename, folder, imageData) {
|
||||
return await plugins.fireHook('filter:uploadImage', {
|
||||
image: imageData,
|
||||
uid: imageData.uid,
|
||||
folder: folder,
|
||||
});
|
||||
}
|
||||
await image.isFileTypeAllowed(imageData.path);
|
||||
|
||||
Reference in New Issue
Block a user