在html页面中上传图片

Bir*_*chi 1 iphone upload image

我使用以下代码将图像上传到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>
Run Code Online (Sandbox Code Playgroud)

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

但同样的事情是在iphone safari浏览器中不起作用?

arn*_*rno 5

iPhone的Safari不支持文件上传.