You must know several tricks to upload files in php. One must be the data posted by the form, then accepted by php move_uploaded_file, and then saved to the specified path on the server.
1.form tag enctype attribute.
2.$_FILES system function. //Convert the uploaded content into an array.
3.move_uploaded_file function. //Move the uploaded files stored in the cache folder to the specified folder.
4.is_uploaded_file function. //Determine whether it exists.
------------------------------------------
1.form tag
Format: