By default, admin management panel can be used to upload favicon/site-logo and etc images which are not hooked in the nodebb original source code.
image.png
If that's the situation you have to override the default upload behavior, you may have to change the source code. I'll put a simple example below:
source code to change: src/controllers/admin/uploads.js for example, override the default uploadFavicon behavior with the above plugin: uploadsController.uploadCategoryPicture = function() { await upload('favicon', req, res, next); }