Html表单有多个文件输入未提交

时间:2016-06-03 12:36:21

标签: php html forms

Html代码

<form action="projectOperations.php" enctype="multipart/form-data" method="post">
    Upload 1 <input type="file" name="file1"><br>       
    Upload 2 <input type="file" name="file2">   <br>    
    Upload 3 <input type="file" name="file3">       <br>
    Upload 4 <input type="file" name="file4">       <br>
    <input type="submit" value="Submit">
</form>

projectOperations.php的Php代码

`var_dump($_POST);`

当我查看控制台时,状态仍然待定

enter image description here

我正在使用Amazon EC2实例来获取此代码。

找到与此相关的堆栈溢出的两个链接,但找不到解决方案

uploading files stuck on pending

Form having more than one file input not submitted

任何人都可以帮助理解这个问题吗?

如果服务器出现问题,我必须更改哪个设置?

1 个答案:

答案 0 :(得分:0)

经过大量调试后,问题确定为...

这是网络防火墙,不允许上传多个文件。

当我尝试从不同的网络上传文件时,它有效。 所以这不是服务器或代码问题。

网络的网络管理员可以修复此错误。