1

Does know how to or can provide a demo or script which will allow multiple files to be uploader to a web server WITHOUT using flash or anything which needs to be installed on the client machine.

Ideally providing a status with how the uploads are doing ie 27% etc.

It would be great if I could select multiple files then hit upload and then they are uploaded one by one in a queue?

Any ideas? Any language is fine.

Hey - I've spent a lot of time searching through google but from what I can see nobody has done an multiple file uploader with a status with out using flash/uploadify/fanceyupload/SWFUpload without having several input boxes.

6 Answers 6

3

You can't provide the status with pure PHP.

AJAX might be a solution or Flash.

Uploading multiple files works pretty similar as uploading one file. You can send the files in an array.

5
  • for the multiple files, see devarticles.com/c/a/PHP/… for the dynamic client side with status and progress bar, see javascript, not ajax, no need server connection to add dynamic behavior for uploading files.
    – enguerran
    Sep 30, 2009 at 9:13
  • you actually need a server connection, if you want to serve an exact status!
    – brainfck
    Sep 30, 2009 at 9:15
  • 1
    Hey - I've spent a lot of time searching through google but from what I can see nobody has done an multiple file uploader with a status with out using flash/uploadify/fanceyupload/SWFUpload without having several input boxes. Sep 30, 2009 at 10:07
  • Have a look at this for the progress bar: blog.joshuaeichorn.com/archives/2005/05/01/… He uses AJAX. Here is an example for multiple file upload: devarticles.com/c/a/PHP/… Google is full of tutorials;-)
    – brainfck
    Sep 30, 2009 at 10:25
  • like I said they are using several input boxes: devarticles.com/c/a/… Sep 30, 2009 at 10:47
2

Everybody already answer what's possible or not, a good jquery plugin for multifile upload: http://www.fyneworks.com/jquery/multiple-file-upload

1

The simple way: add multiple file input elements.

The not so simple way: use a Javascript framework to achive this. There are many scripts out supporting this functionality.

1

I think this is not possible. I hate Flash, but there are two things that are must-do in Flash: (multi)upload with progress bar, and audio/video streaming. For multiupload with progress bar I suggest using http://www.uploadify.com/ - it's extremely easy to implement :)

4
  • Maybe you should be more precise. Multiple file upload without Flash is easy to do. File upload with progress bar cannot be done with pure JavaScript (no Flash nor Java nor other kind of applet).
    – PhiLho
    Sep 30, 2009 at 9:44
  • A file upload progress bar can be done in pure JavaScript. You have to make AJAX requests to the server at the same time as the upload is happening to ask it how much of the file it has received so far.
    – bobince
    Sep 30, 2009 at 9:46
  • @PhiLho: is it possible to select multiple files at once to upload? I know you can put many "input type=file" tags, but that is not the way.. @bobince: with php?
    – Thinker
    Sep 30, 2009 at 19:02
  • @PhiLho There is no way as far as I know to allow you to upload multiple files at once by way of Ctrl + clicking on all desired files unless you use flash, silverlight, etc. You can only click allow it to upload the file and then choose the next file ...
    – Josh Mein
    Dec 28, 2009 at 19:54
1

With the right software on the server, it's possible to display an upload progress meter using just JavaScript on the client. Check out mod_uploadprogress for lighttpd.

0

Hey I know this must be really late for an answer, but i too was faced with the same upload problem, most depressing was no support for multiple browsers. I found this plugin which worked on almost all the browsers, I hope it does help someone in future.

http://www.uploadify.com/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.