I'm using Advanced Custom Fields to display some uploaded items on the website, but I also need to display the size of the files.
I have this code:
$filevalue = get_field('file_bestand'); $filesize = filesize( get_attached_file( $filevalue ) ); $filesize = size_format($filesize, 2); echo $filesize;
But it's not showing me anything...
Is there anyone who can help me with this?