代码之家  ›  专栏  ›  技术社区  ›  Biranchi

以HTML页面上传图像

  •  1
  • Biranchi  · 技术社区  · 16 年前

    我正在使用以下代码将图像上载到Web服务器

    <form name="uploadFile" action="upload.php" method="post" enctype="multipart/form-data" onSubmit="return validate();">
    
    <input type="hidden" name="choice" value="upload">
    <table align="center">
    <tr>
        <td><span style="color:red;font-weight:bold">Upload files</span></td><td><input type="file" id="ufile" name="ufile" onKeyPress="return false;" style="BACKGROUND-color:Thistle">(* jpg,gif,png)</td>
    </tr>
    <tr>
        <td colspan="2" align="center"><input type="submit" name="submit" value="Upload" style="BACKGROUND-color:Thistle"></td>
    </tr>
    
    </table>
    </form>
    

    它在浏览器中工作正常吗?

    但同样的事情在iPhone Safari浏览器中不起作用?

    2 回复  |  直到 13 年前
        1
  •  5
  •   arno    16 年前

    iPhone的Safari不支持文件上传。

        2
  •  1
  •   worksykes    14 年前

    http://picupapp.com/ 这是一个提供代码的应用程序,您可以添加到您的网站,允许他们的iPhone应用程序伪上传图像到您的Web服务器。