Just wondering why I can't get value of array name from input type file.
<input type="file" name="collateral_photo" id="collateral_photo" class="default"/>
use the below code, since the name attribute is an array
$files = Request::file('collateral_photo'); return $files;
or if you want second file
return $files; //if you want to access second file and so on
you need to access the file with array index specified.
If you want to return the whole files array itself then use