PHP中的文件上传错误。

时间:2015-10-17 11:09:45

标签: php html forms file

   grep -e '^This.*testing$' -R testing/  | sed 's/\('This'\)\('.*'\)\('testing'\)/\2/'
  testing/test/file3: is for my best 
  testing/test/file4: is small 
  testing/file2: is for final 
  testing/file1: is for model 

我一直在研究这个单个文件几个小时但找不到任何解决方案。 PHP ini文件中的文件上传也已打开。这是我的代码。

1 个答案:

答案 0 :(得分:1)

<form method="post" action="upload_file.php" enctype="multipart/form-data">
表单中缺少

enc类型。