Precautions for php file upload form
We start formal learning and learn how to upload files. To upload files, a form must be prepared on the web page.
This is a simple HTML page form. The form form prepares a dedicated class for file content. Whentype=file is selected, the default is to upload the file content.
Let’s take a look at the code and precautions of the form
单文件上传
Notes:
1. The parameter method in the form form must be post. If it is get, file upload cannot be performed
2.enctype must be multipart/form-data