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
https://forums.phpfreaks.com/topic/82193-uploading-multiple-files/
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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.