If you use File [] Through var_dump ($ _ file),
Using var_dump ($ _ File)
If you use file []
Reply content:
Using var_dump ($ _ File)
If you use file []
First, you need to pass the array parameter. The parameter name must be followed[]
In order to be parsed, all you must useUpload_file []
As the parameter name.
Second, the file upload in the array form is not parsed into an array of files in PHP parsing (this is a BUG), but will be parsed into the result you see, in the parameter, name also becomes an array. name0] indicates the name of the first file [1] indicates the name of the second file... The same applies to parameters such as type and tmp_name. That is to say, You need to obtain the information for uploading the first file, you should obtain $ _ FILES ['upload _ file' 0], $ _ FILES ['upload _ file' [0]...
This is what happens when PHP parses file arrays.
Name = "upload_file []"