code: public function fromFiles($name = null, $default = null)
      {
          if ($name === null) {
              return $this->event->getRequest()->getFiles($name, $default)->toArray();
          }
      
          return $this->event->getRequest()->getFiles($name, $default);
      }
docs: Return all files or a single file.
  
  @param  string $name File name to retrieve, or null to get all.
  @param  mixed $default Default value to use when the file is missing.
  @return array|\ArrayAccess|null