Html表单有多个文件输入不提交 [英] Html form having more than one file input not submitting
问题描述
Html代码
< form action =projectOperations.phpenctype =multipart / form-datamethod = 后 >
上传1< input type =filename =file1>< br>
上传2< input type =filename =file2> <峰; br>
上传3< input type =filename =file3> <峰; br>
上传4< input type =filename =file4> <峰; br>
< input type =submitvalue =提交>
< / form>
projectOperations.php的PHP代码
$ $ c $ var_dump($ _ POST);`当我查看控制台的状态仍然挂起
我为此代码使用Amazon EC2实例。
找到与此相关的堆栈溢出的两个链接,但找不到解决方案
任何人都可以帮助理解问题吗?
如果它服务器的问题,我必须改变什么设置?
在做了大量的调试问题后,确定为...
它是网络的防火墙,不允许上传多个文件。
当我尝试从不同网络上传文件时,它工作正常。
所以这不是服务器或代码问题。
网络的网络管理员可以修复此错误。
Html code
<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>
Php code for projectOperations.php
`var_dump($_POST);`
When i look into console that status still pending
I am using Amazon EC2 instance for this code.
Found two links on stack overflow relevant to this, but no solution found
uploading files stuck on pending
Form having more than one file input not submitted
Can anyone help to understand the problem?
If it server problem what setting i have to change ?
After doing lots of debugging problem was identified as...
It was firewall of network, which was not allowing to upload multiple files.
When I tried to upload files from different network, it worked. So it was not server or code problem.
Network administrator of the network can fix this error.
这篇关于Html表单有多个文件输入不提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!