1

How can multi-upload images by html5 and js and php, Please give me a demo or example?

Without using a plugin

I try as this code in html and selected multi image:

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

But i give in php code just one image:

foreach( $_FILES['upload'] as $key => $all ){
            foreach( $all as $i => $val ){
                $new[$i][$key] = $val;    
            }    
        }
        echo '<pre>';
        print_r($new);

What do i do?

4

2 Answers 2

3

Plupload is a really good file uploader

Sign up to request clarification or add additional context in comments.

Comments

1

File upload with multiple file selection, drag&drop support, progress bars and preview images. File Upload Example

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.