AngularJS filter to format file size
Update: This filter is useful if you need “standard-compliant” formatting. That means base-1000 for SI units and base-1024 for IEC units. If you need a more conventional filter, that uses base-1024 for SI units, you can find it in the next post.