Mac 上的 Chrome 9.0 两次提示输入表单
我在 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>
I'm using Google Chrome 9.0 on a Mac, and for some reason whenever I upload a file to a site using the form enctype Chrome prompts me for the file twice. I click on the button, then select a file and click "Choose," and then the file dialog pops up again. The file I select in the second dialog is the one that is eventually uploaded to the site. I do not have the same problem in Firefox or Safari. I set up a reduced test case here:
http://rssafter5.appspot.com/index2.html
Do you know what the problem is?
<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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题已在最新的 Chrome 版本 - 9.0.597.10 - http:// code.google.com/p/chromium/issues/detail?id=65532
更新,它可能会得到修复
This is fixed in the latest Chrome build - 9.0.597.10 - http://code.google.com/p/chromium/issues/detail?id=65532
Update and it will probably be fixed