It depends on the plug-in that you use. For example, in my application, I am using this plugin and it has setting for accepted file types: 
If the plugin does not have a setting for the accepted file types, you may need to observe DOM structure of the element and reach to <input>tag of DOM by JQUERY and use accept attribute of HTML (https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept)