[Companion] Is there a way to validate file extensions, mimetypes, sizes server-side?

Hello, I want to know if there is an out-of-the-box way to filter files by their mimetype, extension, size, etc… on the companion size, I know Uppy is capable of doing so, but for obvious reasons, there’s the need of backend validation as well. Is there a way to do so? (without relying on the Redis tasks settings).