On form submit, file field clears in Internet Explorer 9

╄→尐↘猪︶ㄣ 提交于 2019-12-06 09:43:59

There is no solution. This an bug in Internet Explorer.

Does your form work with a normal submit button?

It may be as Joshua Gossett said but I can't find any reference. So, I'm more asking about a JS conflict.

I don't think you should be putting an onclick event on a submit input.

A better way to do it would be to put an onsubmit attribute on the form and put a javascript function in it which dictates the action of the form when being submitted.

I know this is an old issue, but I came across the same problem and wanted to share what worked for me.

Edit your .htaccess file by putting this in the end:

BrowserMatch MSIE best-standards-support
Header set X-UA-Compatible IE=8 env=best-standards-support

I found the information here.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!