通过 html 表单上传 .docx 时出现问题

发布于 2024-08-25 23:58:15 字数 397 浏览 6 评论 0原文

我制作了一个简单的表单,并使用正确的 enctype 来上传文件。当我尝试上传 .docx 时,在 IE 8 和 Safari 中一切正常,但在 Firefox 或 IE 7 或 6 中我什至无法单击“提交”,什么也没有发生!这仍然是服务器问题吗?这是一个阿帕奇服务器。

如果我选择上传 .doc 文件,一切正常

<form enctype="multipart/form-data" method="post" action="index.php">
    <input name="file" type="file" />
    <input type="submit" name="btnSubmit"  value="Submit"/>
</form>

I've made a simple form, with the proper enctype for uploading files. When i try to upload a .docx everything works fine in IE 8 and Safari, but in Firefox or IE 7 or 6 i can't even click submit, nothing happens! Could this still be a server issue? It's an apache server.

Everything works fine if i choose to upload a .doc file

<form enctype="multipart/form-data" method="post" action="index.php">
    <input name="file" type="file" />
    <input type="submit" name="btnSubmit"  value="Submit"/>
</form>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抽个烟儿 2024-09-01 23:58:15

我用 IE7 和 Firefox 在我的 Wamp2.0 中测试了你的表单,它工作正常。我不认为这可能是服务器问题,因为该表单在你的 IE8 中运行良好。也许你应该标准化你的 html 代码,或者检查你浏览器。

I tested your form in my Wamp2.0 with IE7 and Firefox,and it works fine.I don't think it could be the server issue since the form works well in you IE8.Perhaps you should standardize your html code,or check you browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文