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(5) { 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 ["type"]=> 44 array(3) { 45 [0]=> 46 string(16) "text/plain-file1" 47 [2]=> 48 string(16) "text/plain-file2" 49 [3]=> 50 string(16) "text/plain-file3" 51 } 52 ["tmp_name"]=> 53 array(3) { 54 [0]=> 55 string(%d) "%s" 56 [2]=> 57 string(%d) "%s" 58 [3]=> 59 string(%d) "%s" 60 } 61 ["error"]=> 62 array(3) { 63 [0]=> 64 int(0) 65 [2]=> 66 int(0) 67 [3]=> 68 int(0) 69 } 70 ["size"]=> 71 array(3) { 72 [0]=> 73 int(1) 74 [2]=> 75 int(1) 76 [3]=> 77 int(1) 78 } 79 } 80} 81array(0) { 82} 83