I am trying to start using this library in one of my projects.
When I converted my existing app (which was using an <input type="file" />) to using the following code:
fileOpen({ mimeTypes: ['audio/*'] })
I noticed that my audio/* filter was no longer being applied.
I added some debugging code to dump the <input type="file" /> that is being generated by this library, and I noticed <input accept="a,u,d,i,o,/,*," /> is being generated:
To understand the effect of this code change, please see the following 2 examples:
I am trying to start using this library in one of my projects.
When I converted my existing app (which was using an
<input type="file" />
) to using the following code:I noticed that my
audio/*
filter was no longer being applied.I added some debugging code to dump the
<input type="file" />
that is being generated by this library, and I noticed<input accept="a,u,d,i,o,/,*," />
is being generated:To understand the effect of this code change, please see the following 2 examples:
case 1 (both mimeTypes and extensions):
before pr:
after pr:
case 2 (only extensions):
before pr:
after pr: