[TYPO3-english] Get file size with typoscript? or some other way?

Bernd Wilke t3ng at pi-phi.tk
Mon Sep 5 08:35:32 CEST 2011


On 09/04/2011 06:34 PM, Morten Kjems wrote:
> Thanks for pointing me in the right direction Kay.
>
> I can make it work with the following code (I am using the Generic
> Marker extension):
>
> mp4size = TEXT
> mp4size {
> field = generic_tx_mknewfields_videofile
> filelink {
> path = fileadmin/folder/videos/project/
> size = 1
> }
> }
>
> That will output a link to the file and the raw filesize right after the
> link. Great!
>
> However I still face some challenges.
>
> 1. The path is not the same for each file. So I need to build the path
> dynamically.

depending on your kind of field configuration
either your files are copied to (file)
	/uploads/tx_mknewfields/
or the full path would be available (string)

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list