Jarry, thanks, that does NOT work.
in chrome (osx) the finder window that is opened to select a file still shows all files and not only files with the extension set in accepts.
UPDATEOK, I just checked the generated html, and it appears that even though I have defined the 'accept' param in the javascript def, it does not get added to the <input type="file"> as an attribute, but it does get added to another input generated by the control ??
$('#myfile').filebox({
multiple: false,
accept:'.xyz',
onChange: function(nv,ov){
... more code
});
html:
<input class="easyui-filebox filebox-f textbox-f" id="myfile" accept=".xyz" style="display: none;">
... more code
### Shouldn't this be the input that the accept attribute is attached to ???
<input type="file" class="textbox-value" id="filebox_file_id_6" name="">
If I then manually add the accept attr to the type=file it works as expected, I think this is a bug ?!
<input type="file" class="textbox-value" id="filebox_file_id_6" name="" accept=".xyz">
I can fix this issue with:
$('#myfile').next('span.filebox').find('input[type="file"]').attr('accept','.xyz');