【问题标题】:IOS device issue with Html form element names带有 Html 表单元素名称的 IOS 设备问题
【发布时间】:2016-09-08 16:44:27
【问题描述】:

我有四个文件字段的简单 html 表单,每个字段都有唯一的名称。

<form method="post" action="upload.php" enctype="multipart/form-data" target="upload_target" onsubmit="return validateform(this);" >
<input type="file" name="uploaded_file1" id="uploaded_file1" onchange="changefilestate('1');" />   
<input type="file" name="uploaded_file2" id="uploaded_file2" onchange="changefilestate('2');" />   
<input type="file" name="uploaded_file3" id="uploaded_file3" onchange="changefilestate('3');" />   
<input type="file" name="uploaded_file4" id="uploaded_file4" onchange="changefilestate('4');" />  

文件在服务器上与 Imagick 合并为一个文件。 这在桌面和移动浏览器中运行良好,但在提交期间,IPhone(使用任何浏览器)字段会被重命名(或其他东西),因为每次组合文件只包含三次上传的第一个文件(如果提交了三个文件)。这就是为什么我认为 IOS 浏览器以某种方式搞砸了字段名称。

更新:也许问题根本不在表单处理中,而是在 iPhone 文件管理器中,当字段更改并选择新文件时,它不会更改文件。我没有 iPhone,所以我无法测试它。

【问题讨论】:

    标签: html ios


    【解决方案1】:

    问题解决了。 这是与设备相关的问题,因为每个图像的名称总是相同(image.jpg)。

    类似问题:multiple image upload is not working in iphone and ipad

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-15
      • 2012-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多