使用 HTML 表单上传文件失败:
单击提交按钮后,我可以打印出$_FILES["file"]["name"]
and $_FILES["file"]["type"] and ["size"]
and ["tmp_name"]
and and
["error"]
等。但是我在 tmp 文件夹中找不到该文件(默认情况下它应该在那里)!我不知道为什么。
html代码是这样的:
<form action="manage.php?act=getback.questionOpt" target="fileUp" method="post" id="f1" enctype="multipart/form-data">
<p id="file_u">
<input type="file" name="file">
<iframe width="0px" height="0px" name="fileUp" style="display:none">
</iframe>
</p>
</form>