Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, Is it possible to upload a bunch of files at once to the server with a php script ? The user should be able to select multiple files and not one by one... All the scripts I found up till now can upload multiple files but only by selecting them one by one in different boxes. Thanks in advance, Tom
Post Follow-up to this message> Is it possible to upload a bunch of files at once to the server with a php > script ? The user should be able to select multiple files and not one by > one... All the scripts I found up till now can upload multiple files but > only by selecting them one by one in different boxes. It's not a PHP problem, but client-side HTML problem. HTML does not allow multiple file upload (one <input type="file" ... /> is one uploaded file). Some portals use ActiveX controls to solve those problems. Hilarion
Post Follow-up to this messageThanks for your reply. What is the easiest way to solve this problem ? Write a java applet ? Tom "Hilarion" <hilarion@SPAM.op.SMIECI.pl> wrote in message news:cq9gjr$t42$1@news.onet.pl... php > > It's not a PHP problem, but client-side HTML problem. HTML does not allow > multiple file upload (one <input type="file" ... /> is one uploaded file). > Some portals use ActiveX controls to solve those problems. > > Hilarion > >
Post Follow-up to this message> That does not mean you can't make a php script with multiple file uploads ,each chosen by the user > > Here is the input tag: > <input type="file" name="images+3"> > > each tag has a different name, the names of the files which are chosen end up in t he $_FILES array. Look at the text: "The user should be able to select multiple files and not one by one..." Your solution allows uploading of multiple files, but user has to select the m one by one. Yes, it allows uploading more than one file, but each one requires one <input type="file" ... /> tag, so 4 files is 4 inputs etc. Hilarion
Post Follow-up to this message"Big Frank" <francois@duffortENLEVE.org> wrote: > > Alternatively, why not provide a list of, say, 10 input fields allowing yo u > to select up to 10 files and then you have one 'UPLOAD!' button. And use "name[]" as the fieldname then those files come into an array which makes it easier to process. hth mgk -- Honk if you love peace and quiet.
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.