Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
How do I find the file size but omit the unit?
I can use this in a file form:
<txp:file_download_size decimals="0" format="b" />
The output would be akin to:
102615 B
Is there a tag-native way to chop out of the B suffix, please? My use case is an XML enclosure for a podcast:
<enclosure url="https://example.com/episode001.mp3" length="102615" type="audio/mpeg />
Offline
Re: How do I find the file size but omit the unit?
trim=" B" ?
In low-power mode.
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: How do I find the file size but omit the unit?
Offline