How to display different file sizes within the File Summary format field

hello


Within the Global Preferences > File Summary Format field you can display the file size in KB by using this:

%asset_file_size_in_bytes^divide:1024^round:0%



Is there a way to conditionally show that value in MB if the filesize is greater than 1000 KB (otherwise show the filesize in KB as normal)?



eg displays files as 350 KB, or 3.1 MB as appropriate depending on the asset file size



Thanks AH

Have you tried using the %asset_file_size_readable% keyword? It should print it in a friendly format.

Thanks, works nicely.