Multiple image upload without flash

7.6k Views Asked by At

I want to use HTML and PHP for 9 or more images upload. The problem is that I don't want 9 upload fields because it looks bad. Does anybody have any suggestions ? Maybe examples ?

Thanks.

4

There are 4 best solutions below

0
On BEST ANSWER
0
On

What I have done in the past is to give an option on doing another upload, or, when they pick the first file, display it as a label, then have another box ready for them to pick another file. Each file input is actually with a unique name, so the server just goes through until it doesn't find the next file.

But, this requires a bit of javascripting. :)

0
On

I've been using noSWFUpload for some time and it works pretty good. It relies on XMLHttpRequest's sendAsBinary in supporting clients and falls back to iframe-based submission.

0
On

Connect to the fileInput's onchange event, hide it, get the value and add it to a textarea, and create another. Name them all the same plus an increment: field1, field2... Loop through the field names in PHP and check for existance with isset.

Or use Dojo's FileUploader and force html: http://docs.dojocampus.org/dojox/form/FileUploader