views:

255

answers:

3

I want to upload multiple files and store them in a folder and get the path and store it in the database... Any good example you looked for doing multiple file upload...

Note: Files can be of any type...

+1  A: 

See uploading multiple files.

Sarfraz
@sarfraz I had weekend ...Just now i tried the example it awsome so easy
udaya
@sarfraz I tried to generate the <td><input name="ufile[]" type="file" id="ufile[]" size="50" /></td>from an add click i got the <td>'s on add click but the result is not achieved Can you see my new question posted
udaya
+3  A: 

It's not that different from uploading one file - $_FILES is an array containing any and all uploaded files.

There's a chapter in the PHP manual: Uploading multiple files

If you want to enable multiple file uploads with easy selection on the user's end (selecting multiple files at once instead of filling in upload fields) take a look at SWFUpload. It works differently from a normal file upload form and requires Flash to work, though.

Pekka
+1  A: 

Here is a good example for you to follow: EXAMPLE

jini