jeudi 13 septembre 2018

Upload Multiple Images in Laravel 5.1

I have an input file

<input id="images" name="images" type="file"  multiple>

I upload 3 files

enter image description here

My controller only receive 1.

$files = Request::file('images');
$file_count = count($files);

dd($file_count); // 1


dd($files);

UploadedFile {#28 ▼
  -test: false
  -originalName: " 2018-09-13 at 11.54.24 AM.png"
  -mimeType: "image/png"
  -size: 5849
  -error: 0
}

What did I miss ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire