$parameters
$parameters :
Parameter storage.
FileBag is a container for uploaded files.
convertFileInformation(array|\Symfony\Component\HttpFoundation\File\UploadedFile $file) : array<mixed,\Symfony\Component\HttpFoundation\File\UploadedFile>|\Symfony\Component\HttpFoundation\File\UploadedFile|null
Converts uploaded files to UploadedFile instances.
array|\Symfony\Component\HttpFoundation\File\UploadedFile | $file | A (multi-dimensional) array of uploaded file information |
A (multi-dimensional) array of UploadedFile instances
fixPhpFilesArray( $data) : array
Fixes a malformed PHP $_FILES array.
PHP has a bug that the format of the $_FILES array differs, depending on whether the uploaded file fields had normal field names or array-like field names ("normal" vs. "parent[child]").
This method fixes the array to look like the "normal" $_FILES array.
It's safe to pass an already converted array, in which case this method just returns the original array unmodified.
$data |