We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Add-ons
Using MODX Add-ons
Search
How to show file size from the file that users upload via TV.
53 Posts
joyobject
Reply #1,
12 years, 10 months ago
I would like to show file size of the downloadable file. I knew that there is the snippet like this
http://deniskomlev.com/blog/modx-filesize-snippet
However according to this snippet I need to know the file path. The problem is I hardly know the file path upfront since it's the editor who uploads the file from manager side via TV.
Any suggestion for getting file path from TV?
Thank you very much
5,888 Posts
Bruno17
Reply #2,
12 years, 10 months ago
you can put the TV-placeholder into the snippet-tag:
[[FileSize? &path=`[[*yourImageTV]]`]]
-------------------------------
you can buy me a beer, if you like MIGX
http://webcmsolutions.de/migx.html
Thanks!
53 Posts
joyobject
Reply #3,
12 years, 10 months ago
Thank you very much! it works.
53 Posts
joyobject
Reply #4,
12 years, 10 months ago
Thank you very much! it works.