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;
} if ('' ===
$name) { $params =
$request->request->
all();
$files =
$request->files->
all();
} elseif ($request->request->
has($name) ||
$request->files->
has($name)) { $default =
$form->
getConfig()->
getCompound() ?
[] : null;
$params =
$request->request->
all()[$name] ??
$default;