Home >Backend Development >PHP Tutorial >PHP---File upload and download
Reprinted from http://www.cnblogs.com/lazycat-cz/p/4113037.html
Safety performance---insufficient level ╮(╯_╰)╭
File upload--->It is to upload local files to the server. (HTTP protocol needs to be learned)First, you need to select the uploaded file locally. After uploading to the server, the server needs to do some processing. For this, both the client and the server need to make some settings
(Client) The most basic method of file upload is to POST the file through the form and paste the code first.
<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label <span>for</span>="file">选择文件:</label> <input type="file" name="uploadFile" /> <br /><br><input type="submit" name="submit" value="上传" /> </form> </body> </html>