When you need to upload binary files, remember enctype="multipart/form-data"
Now $_FILES has only one index, which is After submitting it to action.php, the internal structure of $_FILES will be like this: $_FILES => array{ fileField1 =>array 'name' =>'****', 'type' => ..... .. }, fileField2 =>array 'name' =>'****', 'type' => ..... .. }, fileField3 =>array 'name' =>'****', 'type' => ..... .. }, fileField4 =>array 'name' =>'****', 'type' => ..... .. } fileField5 =>array 'name' =>'****', 'type' => ..... .. } }The main thing is that the file upload information has been changed to a multi-dimensional array storage. Through looping, the relevant information in the file can be obtained like a single file upload. |