Fix file size check that occurs for uploads without the HTTP_X_REQUESTED_WITH request header
 set (file content rather than the file itself was being passed).