// in the request
if (!
isset($_GET[$name])) { return;
} $data =
$_GET[$name];
} } else { // Mark the form with an error if the uploaded size was too large
// This is done here and not in FormValidator because $_POST is
// empty when that error occurs. Hence the form is never submitted.
if ($this->serverParams->
hasPostMaxSizeBeenExceeded()) { // Submit the form, but don't clear the default values
$form->
submit(null, false
);
$form->
addError(new FormError( $form->
getConfig()->
getOption('upload_max_size_message'
)(),
null,
['{{ max }}' =>
$this->serverParams->
getNormalizedIniPostMaxSize()] ));
return;
}