Documentation · ViewHelper reference

XSD schema file | vhs master

Media / SizeViewHelper

Returns the size of the provided file in bytes. /

  • Tag usage example

    <v:media.size path="NULL">
    	<!-- tag content - may be ignored! -->
    </v:media.size>
  • Inline usage example

    {v:media.size(path: 'NULL')}

Arguments

Argument Description Type
path

Path to the file to determine size for.

string
Required attribute

Revision history

commit af87717b6f5993db16f0bb68adff9cd28b0a67c3
Author: Bjoern Fromme <*****@bjo3rn.com>
Date:   Mon Dec 31 13:07:19 2012 +0100

    [FEATURE] Added Media\Size ViewHelper

commit 2e446ee0b625bae22edd5bd79a061920496bbc36
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Tue Jan 1 13:23:58 2013 +0100

    [BUGFIX] Change indentation from spaces to tabs

commit 7130052708497743f0a2e01914609b970c418ec1
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Tue Jan 1 19:49:58 2013 +0100

    [BUGFIX] File paths are now determined using t3lib_div::getFileAbsFileName() for better compatibility

commit 812925e3b1be49d9c8b7a75bab5fbc815c00601d
Author: Claus Due <*****@wildside.dk>
Date:   Wed May 22 00:06:43 2013 +0200

    [TASK] Cleanup as required by coding standards
    
    Excuse the not-using-PR-direct-to-master commit approach but this one is merely cosmetic in nature and the Travis build is failing because of it.

commit aa32ca2050a4ac2d8ff0a2183b316c7c0f2477ed
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun May 26 16:00:15 2013 +0200

    [TASK] A*****@throws annotations

commit f765ef95a41f77a591f08830631d8a31049304e9
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun May 26 16:04:13 2013 +0200

    [TASK] C*****@param annotations

commit 4ab147c55edfdbcf8c4c15ada60c2f0a94ea1f47
Author: Cedric Ziel <*****@cedric-ziel.com>
Date:   Sat Dec 14 15:23:59 2013 +0100

    [BUGFIX] Make media.size chainable

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file