Results 1 to 2 of 2
Mar 18, 2002, 13:33 #1
- Join Date
- Jul 2001
- 0 Post(s)
- 0 Thread(s)
Uploading multiple files into database
I was wondering if it is possible to upload multiple files using one form. I can upload one file at the same time, but can't figure out how to upload more than one file.
Mar 18, 2002, 14:03 #2
I'd recommend not to put files in the db, but if you still want to proceed with this:
make the upload form (for eg 5 files) like this:
for($num=1; $num<6; $num++)
print "file $num:<input name=\"file$num\" type=\"file\"><br>\n";
another method is by uploading a zip file that contains all the files and then unzipping it - but this isn't the best method if you want to put the files in the dbPHP-Webservices - Profesional Hosting and Programming of sites.