laravel/laravel — Issue #332: [3.0] File input arrays don't play nice with validator or Input::all()
Author: djtarazona
Created: 2012-02-12 08:50:01+00:00
State: open

Validation doesn't work with file uploads that use array syntax for the input name.

``````

This also breaks the functionality of functions like Input::file().

Finally, all hell seems to break lose when using Input:all(). Let's say I also have fields like...

```
```

Input:all() will return an array like...

```array(1) {
["content"]=>
array(5) {
["name"]=>
array(1) {
["photo"]=>
string(8) "bkgd.jpg"
}
["type"]=>
array(1) {
["photo"]=>
string(10) "image/jpeg"
}
["tmp_name"]=>
array(1) {
["photo"]=>
string(26) "/private/var/tmp/phpt1vr5R"
}
["error"]=>
array(1) {
["photo"]=>
int(0)
}
["size"]=>
array(1) {
["photo"]=>
int(27193)
}
}
}```