public static function nested(array $files)
    {
        $normalized = array();

        foreach (array_keys($files['tmp_name']) as $key) {
            $file = array('tmp_name' => $files['tmp_name'][$key]);

            $file['size'] = $files['size'][$key];

            $file['error'] = $files['error'][$key];

            $file['name'] = $files['name'][$key];

            $file['type'] = $files['type'][$key];

            $normalized[$key] = self::create($file);
        }

        return $normalized;
    }
public static function nested(array $files)
    {
        $normalized = array();

        foreach (array_keys($files['tmp_name']) as $key) {
            $file = array('tmp_name' => $files['tmp_name'][$key]);

            $file['size'] = $files['size'][$key];

            $file['error'] = $files['error'][$key];

            $file['name'] = $files['name'][$key];

            $file['type'] = $files['type'][$key];

            $normalized[$key] = self::create($file);
        }

        return $normalized;
    }
Returns an array of \UploadedFile instances from $_FILES.

@param  array $files
@return \Psr\Http\Message\UploadedFileInterface[]