Is there any way to get size of POST-request body in PHP?
My guess is, it's in the $_SERVER['CONTENT_LENGTH'].
$_SERVER['CONTENT_LENGTH']
And if you need that for error detection, peek into $_FILES['filename']['error'].
$_FILES['filename']['error']