src/Leevel/Http/Psr2Leevel.php
protected function getFiles(array $uploadedFiles, string $parent = ''): array
    {
        $files = [];

        foreach ($uploadedFiles as $key => $value) {
            $key = ($parent ? $parent.'\\' : '').$key;

            if ($value instanceof UploadedFileInterface) {
                $files[$key] = $this->createUploadedFile($value);
            } else {
                $files = array_merge($files, $this->getFiles($value, $key));
            }
        }

        return $files;
    }
protected function getFiles(array $uploadedFiles, string $parent = ''): array
    {
        $files = [];

        foreach ($uploadedFiles as $key => $value) {
            $key = ($parent ? $parent.'\\' : '').$key;

            if ($value instanceof UploadedFileInterface) {
                $files[$key] = $this->createUploadedFile($value);
            } else {
                $files = array_merge($files, $this->getFiles($value, $key));
            }
        }

        return $files;
    }
转换上传文件结构.

@param array  $uploadedFiles
@param string $parent

@return array