fabpot/Goutte — pull request #27 by robo47 (2011-11-03 17:22:50+00:00)
Title: Fixes problem with multi-dimensional files array

Symfony\Component\BrowserKit\Request->getFiles() can return a multi-dimensional array with nested uploads for example given an input-element which has an array as name:

```

```

would result in an array like:

```
array(1) {
["baa"]=>
array(1) {
["foo"]=>
array(5) {
["name"]=>
string(13) "some_file.txt"
["type"]=>
string(0) ""
["tmp_name"]=>
string(17) "/tmp/uploadRYvrqA"
["error"]=>
string(1) "0"
["size"]=>
string(2) "16"
}
}
}
```

So it needs to recursivly go through the array and add the files.

Related to https://github.com/Behat/Mink/issues/106