Image picker validation(file size) for user group

Hi!

I was googling around, but couldn’t find any plugins/packages for Umbraco that would allow me to validate file size on image picker for specific user groups. I have one Umbraco website with public company login(any company worker can login and upload some content and media) and this login/user is set to specific user group.

So maybe you can suggest any package to restricting specific user group to upload bigger than X Mb files?

I know I could write code to listen to “Publish” or “Save” event and check user group and file size and based on that through exception and prevent user from publishing. But as I might need add more user groups I would need to update code each time which means doing release every time I need to add/remove restriction to specific group of users.


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/73251-image-picker-validation-file-size-for-user-group