如果用html提交,是这样写:
<input type="file" name="upfile">
如果是用C#提交,是这样写:
WebClient.UploadFile("http://localhost/test.php", "POST","2.gif");我的服务器上php是这样处理的:
move_uploaded_file($_FILES['upfile']['name'], $uploadfile)
现在有个问题:
用C#提交的时候,缺少input里的那个"name",php程序在处理的时候找不到名字叫'upfile'的文件,应该怎么办呢?