$request = $event->getRequest();
print_r($request->files);die;
gives me
Symfony\\Component\\HttpFoundation\\FileBag Object
(
I'm using symfony 4,
I wanted to get the files original name. What worked for me is:
$form = $this->createForm(SomeType::class, $object);
if($form->isSubmitted() && $form->isValid()) {
$fileName = $object->getImage()->getClientOriginalName();
}
In my case getImage() is the getter for the name of the file upload field. So that would change to your relevant getter function for the file upload field.