Search the FirstSpirit Knowledge Base
It's a common pratice in UI design to display the filesize next to a download link. That can be accomplished very easily within FirstSpirit.
Within a linktemplate, you can access the filesize like this:
This will display the filesize in bytes, which isn't very userfriendly. However, we provide a convenience function for a human readable output:
This construct will output the filesize in the highest unit possible.
If you want to stick to a particular unit, kilobytes for example, you could do:
Possible units are:
KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB (base 2)
kB, MB, GB, TB, PB, EB, ZB, YB (base 10)
** will display the highest base 2 unit possible
* will display the highest base 10 unit possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.