Looking for a script that enables mutiple file uploads

Hello everyone,
I’m looking for a free script that will enable users to select mutilple files and upload them to the server through a form.

I’ve searched on google and found some scripts but they are not free unfortunately, one of them is this which i liked: http://www.phpfileuploader.com/?gclid=CIzE5u-hz60CFWQntAodXiPPmw
does any1 know any script that does similar thing and is free?

Thanks,
ulthane.

have you looked at html5’s new multiple upload feature?

it looks a bit like this:

<form action='#' method='post' enctype='multipart/form-data'>
  <input name='uploads[]' type=file multiple>
  <input type='submit'>
</form>

not sure on browser support for it but it might be worth a shot to save some pennies

hope it helps :wink:

It is not hard to write one and if you search this forum there should be at least one example.

Hotscripts is always a good place to look for code with a lot of free ones; I just searched under php for multiple file upload and there are probably a couple there that will do what you want.

It’s fairly straight forward to write your own.

All you need is an “Add file” button which calls a function that uses DOM methods including createElement() and appendChild() to add a new file input element. You just need to give each file input element the same name and suffixed with to ensure the file names of the uploaded files are sent to your php script in an array.

There is a free tutorial and example code on w3schools showing how to upload a single file. Then it’s only a few minor tweaks as described above to upload multiple files. The php code handling the uploaded files then just needs to be wrapped in a foreach loop to handle an array of uploaded file names.

I wouldn’t use html5 for this because older browsers won’t support it.