Redefine accept list of uploader

Hello,

I am trying to redefine the accept list of an uploader, but it doesn’t seem to work. It was initialized with ‘.csv’;

I tried:

uploader.config.accept = ‘.xls, .xlsx’;
uploader.refresh();

and

uploader.define(‘accept’, ‘.xls, .xlsx’);
uploader.refresh();

Anything I am missing?

Many thanks, Peter

I have created a sample that demonstrates the issue:
http://webix.com/snippet/2516b1d8

BR, Peter

Hello,

The accept property cannot be redefined. The handier solution I can suggest is to use two different uploaders and change their visibility via toolbar.showBatch():

http://webix.com/snippet/c3da231d