Asset Listings/Triggers - sorting / selecting by asset size?

(Douglas (@finnatic at @waikato)) #1

We’re wanting to monitor, catch, and handle large files which are uploaded by anyone with access to do so to our Matrix systems (1500+ users) as discussed in the past e.g. Limiting oversized image uploads - any nice solutions?

A) From what I can tell / remember / find, there doesn’t look to be any way to sort an asset listing by asset size (using the %asset_file_size_in_bytes% keyword) or restrict asset inclusion by file size?

Seems a little odd, but perhaps understandable since non file assets presumably may not have a stored ‘size’ attribute.

Has anyone ever built a listing to purposely only show file assets over a certain size?

B) I’m also looking to setup a trigger to check File assets after they’ve been created / modified and spam an admin address, but I’m also thinking / finding that there doesn’t seem to be an easy way to achieve this either?