+1, but even this whole block can be changed to just "return eZHTTPFile::UPLOADEDFILE_OK;" as $maxSize === false is handled in the beginning if the function.