Jump to content

Uploading multiple files


ksmatthews

Recommended Posts

Hi There,

 

I am familiar with the process of uploading files in php using the $_FILES super global.

 

I would like to know more about uploading multiple files. I know that this can be done using arrays like this

 

<input class = "default" name="myfile[]" type="file" />

<input class = "default" name="myfile[]" type="file" />

 

etc ...

 

but this requires the invocation of the 'choose file' dialog multiple times. Is it possible to select and upload multiple files using just one 'choose file' dialog ??

 

regards,

 

Steven M

Link to comment
Share on other sites

I have found that the issue that this would be client side not server side and php is server side.

 

For multi file upload I created a custome ActiveX control program to do this on the client side and trigger Autosubmit with in the upload page.

 

Basiclly loading a page for each file to be uploaded but automaticly.

 

other wise its an array and they do work its just you do have to select each file via a separat dialog box.

 

 

 

[attachment deleted by admin]

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.