注意:在PHP上传文件时,input里的name不能是"file",否则就会报错。
Notice: Undefined index: myfile in D:\XAMPP\htdocs\10.php on line 10
Notice: Trying to access array offset on value of type null in D:\XAMPP\htdocs\10.php on line 10
改为”myfile“就行了。
注意:在PHP上传文件时,input里的name不能是"file",否则就会报错。
Notice: Undefined index: myfile in D:\XAMPP\htdocs\10.php on line 10
Notice: Trying to access array offset on value of type null in D:\XAMPP\htdocs\10.php on line 10
改为”myfile“就行了。