<form action="{:url('upf')}" method="
post" enctype="multipart/form-data">
<input type="file" name="upxls" /> <br><br>
<input type="submit" value="上传" />
</form>
上传后结果是:
Call to a member function move() on null
dump($file)后提示
D:\wamp64\www\thinkphp\library\think\Debug.php:210:null
再dump($_FILES)后提示
D:\wamp64\www\thinkphp\library\think\Debug.php:210:
array (size=0)
empty
再dump($_FILES['upxls'])后居然提示
未定义数组索引: upxls
请上传功能做成功的朋友指点指点,多谢
最佳答案