Я не знаю, что с этим случилось. Я пытался использовать dd с ним. Мне нужно только загрузить один файл. Каждый раз, когда я загружаю его, он всегда возвращает null
контроллер
public function postDoTest(){
dd( Input::file('file') ); // this returns NULL
}
затем в Моем представлении
{{ Form::open( array( 'url' => 'files/do-test', 'files' => true, 'id' => 'file_uploader_forms' ) ) }}
{{ Form::file('file', array( 'id' => 'fileuploads', 'style' => 'display:none' ) ) }}
<button type="submit" id="upload_all" class="btn btn-upload">test</button>
{{ Form::close() }}
Редактировать:
Вы должны изменить 'id' => 'fileuploads'
на 'id' => 'file'
.