Html表单有多个文件输入不提交 [英] Html form having more than one file input not submitting

查看:185
本文介绍了Html表单有多个文件输入不提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆