<form method=post action='/php_bin/img_upload.php' enctype="multipart/form-data"> <input type=file id="fileupload" type="file" name="files[]" multiple ><br> <input type=submit value='업로드'><br> </form>
=================================================================
$t=sizeof($_FILES['files']['name']);
for($i=0;$i<$t;$i++) { $f_name=$_FILES['files']['name'][$i]; $f_name_tmp=$_FILES['files']['tmp_name'][$i]; $f_name_size=$_FILES['files']['size'][$i]; $f_name_type=$_FILES['files']['type'][$i];
echo "이름: $f_name 임시: $f_name_tmp , $f_name_size :: $f_name_type <br> "; }
|