umbraco-community / Umbraco.Community.Sustainability

A package from the Umbraco Community Sustainability Team which helps developers and editors see and improve the carbon impact of their websites.
MIT License
9 stars 9 forks source link

Added media library warnings #18

Closed tony-gledhill closed 1 month ago

tony-gledhill commented 5 months ago

A feature has now been added to highlight media items that are not complying with explicit file sizes that have been set by a developer.

An editor can still upload content into the media library without restrictions, but offending items are now highlighted in red and have the media icon replaced with a thumbs down icon.

Developers are able to set media library types, along with the maximum size in bytes, int he appSettings.json This allows for custom media types to be included as well.

tcmorris commented 1 month ago

Thanks @tony-gledhill for your contribution. This should be added in the next release as an opt-in feature.