I'm using this simple code to catch the file size:
$photoSIZE = filesize($_FILES['photo']['name']);
$attachSIZE = filesize($_FILES['attach']['name']);
i receive the error:
filesize() [function.filesize]: stat failed
i uploaded a 21mb file
what should be?