This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Mr.VACO
Mr.VACO

Good day!

The file is stored in "system_files" table. There is a field - "file_size" - in bytes. How can I get file size not in bytes, and in a modified form ( Kb, Mb, Gb)?

{% for file in post.filesize %}
           Size: {{ file.file_size }} Byte
{% endfor %}

Sorry my English :)

Last updated

maycon.ghizzi34750

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.