I am trying to restrict the file type (only mp3 files) when I open a dialog with uploadcare.
uploadcare.loadFileGroup(soundGroupID) .done(function (fileGroup) { uploadcare.openDialog(fileGroup.files(), { multiple: true, multipleMin: 0, fileTypes="mp3" }).done( function (file) { file.promise().done( function (fileInfo) { //TODO Something }); }); }) .fail(function () { // Something went wrong. }); Is there any way to push a validator? Is there any way to access the widget? As you can see, I am opening a dialog so I can not access the widget anywhere.