0

I am new to php and i want solution for multiple images upload into php server.

I am using this way to multiple upload images file but getting issue when i multiple upload images.

<form enctype="multipart/form-data" action="upload.php" method="post"> <input name="file[]" type="file" /> <input type="button" id="upload" value="Upload File" /> </form> <script> $(document).ready(function(){ $('.add_more').click(function(e){ e.preventDefault(); $(this).before("<input name='file[]' type='file' />"); }); }); </script> 
5
  • Upload your server side code and please explain what kind of error you are getting. Commented Dec 10, 2014 at 5:35
  • error is image not upload Commented Dec 10, 2014 at 5:38
  • Then post the error you are getting. Commented Dec 10, 2014 at 5:46
  • possible duplicate of How to select multiple files with <input type="file">? Commented Dec 10, 2014 at 5:56
  • 1
    Please post the full code with the detailed issue you are facing as you posted add more jquery code but where is add_more in the code we don't know so please elaborate Commented Dec 10, 2014 at 6:00

1 Answer 1

2

please add multiple attribute in input

<input name="file" type="file" multiple /> 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.