0

I have this input field where i can upload multiple files (txt,pdf and doc). What i want is when user chose what files want to upload to display that files bellow. Any suggestion how can i do that?

 {!! Form::file('documents[]', ['class' => 'hidden','multiple'=>true]) !!}
None
  • 8,817
  • 26
  • 96
  • 171

1 Answers1

0

Try out below code,

$file = $request->file('document');

for($i=0;$i<count($file);$i++)
{
    echo "<br> file Name : ".$file->getClientOriginalName();
}

this display filename of all available files.

GhanuBha
  • 142
  • 7