You are correct. Uploaded data is ignored, when the size limit is exceeded. So, you don't get access to the ['size']
info.
Instead, you need to validate your upload like this:
<?php
if ($_FILES['uploadedFile']['error'] == UPLOAD_ERR_OK)
{
// success - move uploaded file and process stuff here
}
else
{
// error
switch ($_FILES['uploadedFile']['error'])
{
case UPLOAD_ERR_INI_SIZE:
echo "The uploaded file exceeds the upload_max_filesize directive in php.ini."; break;
case UPLOAD_ERR_FORM_SIZE:
echo "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form."; break;
case UPLOAD_ERR_PARTIAL:
echo "The uploaded file was only partially uploaded. "; break;
// etc... see the full list here http://uk1.php.net/manual/en/features.file-upload.errors.php
}
}