1--TEST-- 2rfc1867 array upload 3--INI-- 4file_uploads=1 5upload_max_filesize=1024 6max_file_uploads=10 7--POST_RAW-- 8Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737 9-----------------------------20896060251896012921717172737 10Content-Disposition: form-data; name="file[]"; filename="file1.txt" 11Content-Type: text/plain-file1 12 131 14-----------------------------20896060251896012921717172737 15Content-Disposition: form-data; name="file[2]"; filename="file2.txt" 16Content-Type: text/plain-file2 17 182 19-----------------------------20896060251896012921717172737 20Content-Disposition: form-data; name="file[]"; filename="file3.txt" 21Content-Type: text/plain-file3 22 233 24-----------------------------20896060251896012921717172737-- 25--FILE-- 26<?php 27var_dump($_FILES); 28var_dump($_POST); 29?> 30--EXPECTF-- 31array(1) { 32 ["file"]=> 33 array(6) { 34 ["name"]=> 35 array(3) { 36 [0]=> 37 string(9) "file1.txt" 38 [2]=> 39 string(9) "file2.txt" 40 [3]=> 41 string(9) "file3.txt" 42 } 43 ["full_path"]=> 44 array(3) { 45 [0]=> 46 string(9) "file1.txt" 47 [2]=> 48 string(9) "file2.txt" 49 [3]=> 50 string(9) "file3.txt" 51 } 52 ["type"]=> 53 array(3) { 54 [0]=> 55 string(16) "text/plain-file1" 56 [2]=> 57 string(16) "text/plain-file2" 58 [3]=> 59 string(16) "text/plain-file3" 60 } 61 ["tmp_name"]=> 62 array(3) { 63 [0]=> 64 string(%d) "%s" 65 [2]=> 66 string(%d) "%s" 67 [3]=> 68 string(%d) "%s" 69 } 70 ["error"]=> 71 array(3) { 72 [0]=> 73 int(0) 74 [2]=> 75 int(0) 76 [3]=> 77 int(0) 78 } 79 ["size"]=> 80 array(3) { 81 [0]=> 82 int(1) 83 [2]=> 84 int(1) 85 [3]=> 86 int(1) 87 } 88 } 89} 90array(0) { 91} 92