plupload
plupload copied to clipboard
setOption('filters', ...) works, but browser file dialog does not recognize new extensions.
Based on various dropdowns on my form I change the extensions that are allowed after plupload has been initialized.
var uploader = $("#uploader").plupload('getUploader');
uploader.setOption('filters', {mime_types:[{title : "Text files", extensions : "xlsx"}]} );
So when I inspect the plupload settings everthing is define correctly and if I drag/drop an incorrect extension plupload catches the error. But when I press the button "Add Files" the browser file dialog only allows "csv" extensions which was set during the initialization of plupload.
Add thoughts?
The following issue has a lot of discussions about this after the issue was closed. #1339