How to process <input type="file" name="test1[f]" /> in PHP?
- by user198729
var_dump($_FILES) gives the following:
array
'test1' =>
array
'name' =>
array
'f' => string 'ntuser.dat.LOG' (length=14)
'type' =>
array
'f' => string 'application/octet-stream' (length=24)
'tmp_name' =>
array
'f' => string 'D:\wamp\tmp\php223.tmp' (length=22)
'error' =>
array
'f' => int 0
'size' =>
array
'f' => int 0
Why is http designed this way?How can I get the file by $_FILES['test1']['f']?