Recommend this page to a friend! | ![]() |
![]() |
All requests ![]() |
> | upload multiple files | > | Request new recommendation | > | ![]() |
> | ![]() |
||
by suliman alkhateeb - 2 months ago (2015-12-12) upload multiple images
+5 | I need script for upload multiple files and images |
1. by Ettore Moretti - 2 months ago (2015-12-14) Reply
In HTML5 you can use the "multiple" attribute in the tag input type = "file".
HTML Example:
<form action = "upload.php" method = "post" enctype = "multipart / form-data"> <input type = "file" name = "files []" multiple /> <input type = "submit" value = "Upload" /> </ form>
In upload.php you can recover data files with the global variable $_FILES.
Being a HTML5 features, you will need to deal with the compatibility of different browsers:
Chrome 6.0 or higher Explorer 10.0 or higher Firefox 3.6 or higher Safari 5.0 or higher Opera 5.0 or higher
+4 |
There are plenty of classes to handle file uploads. This provides that feature among others including retrieving files uploaded with a multiple file select. |
Recommend package | |
|