不明白为什么
程序代码:
<html> <body> <form action="up.php" enctype="multipart/form-data" method="post"> upload: <input name="file" type="file"> <input type="submit" value="up"> </form> </body> </html>
程序代码:
<?php /** * Created by PhpStorm. * User: rosen * Date: 15-11-5 * Time: 下午8:43 */ print_r($_FILES['file']); ?>
报错 Array ( [name] => 2015-10-19 18:47:42屏幕截图.png [type] => [tmp_name] => [error] => 3 [size] => 0 )