0

I was searching for some tutorials on how to upload multiple files, for example this: http://tutsglobal.com/discussion/301/how-to-upload-multiple-images-in-laravel-4

There is a {{ Form::file('images[]', ['multiple' => true]) }} line that should make from input for selecting multiple files. But the problem is that I can select only one file and not more. What could I do to be able to upload multiple files?


This is in my View:

{{ Form::open(['action' => 'AdminController@postProject', 'files' => true, 'enctype' => 'multipart/form-data', 'class' => 'projectform']) }}

    {{ Form::file('images[]', ['multiple' => 'multiple']) }}

{{ Form::close() }}

This is HTML output:

<input multiple="multiple" name="images[]" type="file">

I just found that I can select multiple files with holding down SHIFT key, but I'd like to be able select files separately, one by one.

2
  • if your form content-type set to multipart/form-data? Commented Dec 2, 2014 at 10:13
  • Can you show us the html output of the form? Commented Dec 2, 2014 at 10:15

1 Answer 1

1

Hint: maybe its helpful for you.

 <form action="demo_form.asp">
     Select images: <input type="file" name="img" multiple>
     <input type="submit">
 </form> 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.