Forum Moderators: coopster

Message Too Old, No Replies

upload multiple files

how do you !

         

diegomh7

5:08 pm on Aug 13, 2006 (gmt 0)

10+ Year Member



whats the best way to upload multiple files, as in more than 30 a time, using php, can you ftp a folder and get php to read file names etc then store it in a db? how do you dynamically add multiple input files to a page then make the moveuploadfiles code work dynamically aswell,

ideas anyone,

thanx in advance

smatts9

10:04 pm on Aug 13, 2006 (gmt 0)

10+ Year Member



Make a page with 30 upload bars, and hit submit then php goes through 1 by 1 with while() and inserts them all?...

Scally_Ally

11:25 am on Aug 14, 2006 (gmt 0)

10+ Year Member



one thing you may want to watch is that your script doesnt cause php to time out..

upload_max_filesize
post_max_size
memory_limit
max_execution_time
max_input_time

php.ini

the_nerd

1:13 pm on Aug 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



maybe you should upload a zip-file and use php to unzip it once it's on the server?

hughie

1:19 pm on Aug 14, 2006 (gmt 0)

10+ Year Member



i've solved this problem using a cheap applet i came across, works a treat with php.
I won't post it here but you can sticky me for the details.

coopster

1:27 pm on Aug 22, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



From the PHP Online Manual:
Uploading multiple files [php.net]