<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8"
>
<title>this is my fileuUpload</title>
</head>
<body>
<form action="doAction.php" method="post"
enctype="multipart/form-data">
请选择你要上传的文件
<input type="file" name="myfile"/><br/>
<input type="submit" value='上传文件'/><br/>
</form>
</body>
</html>
<?php
/**
Created by PhpStorm.
User: Administrator
Date: 2017/5/18
Time: 19:19
*/
//$_FILES
print_r($_FILES);
I guess the size of the file you uploaded exceeds the configuration size in PHP. The default is 2M. You can try uploading a file smaller than 2M. If it is OK, try changing the configuration to a larger size. Also, the received file is $_FILES instead of $_FILE.