我在 Mac 上使用 Google Chrome 9.0,出于某种原因,每当我使用 enctype 表单将文件上传到网站时,Chrome 都会提示我输入文件两次。我单击按钮,然后选择一个文件并单击“选择”,然后再次弹出文件对话框。我在第二个对话框中选择的文件是最终上传到站点的文件。我在 Firefox 或 Safari 中没有同样的问题。我在这里设置了一个简化的测试用例:
http://rssafter5.appspot.com/index2.html
你知道问题是什么吗?
<div id="container" style="margin-top:50px;">
<form enctype="multipart/form-data" id="opml" method="post" action="/opml/myfeeds_after5.opml">
<input type="file" style="width: 380px;" name="opml_file">
<input type="submit" id="file_sub_button" value="Submit OPML File">
</form>
</div>