File size in MB instead of bytes

The file size of electronically distributed products displays in bytes at a website page and in the email message. How I can make them to be in MB :confused:

Just did it straight in the templates:



{$file.file_size/1048576|number_format:2:“.”:" "} {$lang.mbytes}



(add a language variable called mbytes to your backend)