Input type file ignores accept attribute (iOS)


#1

Hi there!

I have a simple
<input type="file".. />

in my app and when clicked I want to show the native file browser (iOS), then let the user select a file from the device (e.g. Dropbox, iCloud drive etc) of type XML and read the contents. The problem is that the accept attribute is ignored in iOS and the file browser shows all files.

I have tried accept="text/xml" , accept="application/xml", accept=".xml" without success.

Any ideas?

thanks!
d.