我无法使上传文件系统工作 [英] I can't make upload file system works

查看:93
本文介绍了我无法使上传文件系统工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的editprofilepicture.php

我有:



in my editprofilepicture.php
I have:

<?php
if(isset($_POST['upload'])){
    var_dump($_FILES['userfile']);echo"<br/><br/>";
	if($member->ChangeProfilePicture($_FILES['userfile'],$sessionID)){
            	header("ViewProfile.php?id=$id");
	}
}

echo "
		<form enctype=\"multitype/form-data\" action='#' method='post'>
		<table>
				<tr><td><input name='userfile' type='file'  id='uploadFile'/>
			</tr>
			
			<tr><td><input type='submit' name='upload' value='Edit Profile pictures'/></td></tr>
		</table>
		</form>";
	

?>





我得到的错误:



注意:未定义的索引:第22行的C:\ xampp \\\ htdocs \Classes \ EditProfilePicture.php中的用户文件

NULL

注意:未定义的索引:第23行的C:\ xampp \htdocs \Classes \ EditProfilePicture.php中的用户文件



为什么用户文件不是识别?



The error i got:

Notice: Undefined index: userfile in C:\xampp\htdocs\Classes\EditProfilePicture.php on line 22
NULL
Notice: Undefined index: userfile in C:\xampp\htdocs\Classes\EditProfilePicture.php on line 23

Why is the user file not recognized?

推荐答案

_POST ['upload'])){
var_dump(
_POST['upload'])){ var_dump(


_FILES ['userfile' ]);回声 <峰; br /><峰; br /> 中;
if(
_FILES['userfile']);echo"<br/><br/>"; if(


member-> ChangeProfilePicture(
member->ChangeProfilePicture(


这篇关于我无法使上传文件系统工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆