How to reproduce:
Prepare form with enctype multipart/form-data and 1 input="file" field.
Then send the form without files.
var_dump($_FILES);
// outputs
array(1) {
["file"]=>
array(5) {
["name"]=>
string(0) ""
["type"]=>
string(0) ""
["tmp_name"]=>
string(0) ""
["error"]=>
int(4)
["size"]=>
int(0)
}
// controller action context
var_dump($this->request->hasFiles()) // true
In fact, no files were transferred.
How to reproduce:
Prepare form with enctype multipart/form-data and 1 input="file" field.
Then send the form without files.
In fact, no files were transferred.