Set different max upload size limits based on file type/extension
When uploading with video files to the Media Library, it’s apparent that you need to increase the Max upload file size value. But this will be applied to all media types, including images and documents.
Is there any plugin or simple code that can set different size limits based on the file type/extension so that I can grant a large limit for videos, a small limit for images, and a different limit for documents?
I think WordPress should handle this natively because it’s not logical to have the same limit for all file types. This was OK in the past when WordPress saw the light for the first time, but not in the current time.