The description of the [file:size] token says "The size of the file, in kilobytes.". However, the function uses format_size() which if the file is large enough, will return a size formatted as MBs or higher. The description should just be changed to "The size of the file."
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1193044-file-size-token-description.patch | 473 bytes | dave reid |
Comments
Comment #1
dave reidComment #2
crashtest_ commentedWorks for me in D7 and D8.
Comment #3
dave reidComment #4
dries commentedNice little bugfix. Committed to 7.x and 8.x. Thanks.
Comment #5
dries commentedCommitted to 7.x and 8.x. Thanks!