Entry
How can I upload multiple files in one PHP script?
Can I create a form that enables the upload of multiple files?
Jun 28th, 1999 03:09
Nathan Wallace, Onno Benschop, Sascha Schumann, Mike Robinson
PHP (and most browsers, including Netscape) follow RFC 1867
("Form-based File Upload in HTML") which allows for multiple
files to be uploaded.
Uploading multiple files should work by using various NAME attributes in
the HTML code, i.e.
<input type=file name=file1>
<input type=file name=file2>
<input type=file name=file3>
You could even try it this way
<input type=file name=file[]>
<input type=file name=file[]>
<input type=file name=file[]>