문제

I have a the following code (fiddle):

<input type="file" accept="application/xml">

In IE 10 and Chrome 29.0.1547.76 it filters directly for XML-Files. Only Firefox got the behaviour to show first all files. The Firefox file dialog has also the ".xml" filter, but it is on second position.

Is there a way to get Firefox using the ".xml" filter as standard filter?

도움이 되었습니까?

해결책

This has been opened as a bug with Mozilla, there doesn't seem to be any movement on it so essentially there is currently no way to alter this:

http://support.mozilla.org/en-US/questions/953914#answer-418899 https://bugzilla.mozilla.org/show_bug.cgi?id=826176

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top