Without javascript:
You can do it by implementing a custom render for that component.. but It's not worth it...
With javascript,
As the multiple file upload component is a jQuery-File-Upload plugin, you can use the accept attribute of the file input field to limit the file type selection, The accept attribute is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari 6.
An example limiting files to images using jQuery (Assuming your fileUpload widgetVar is fileUploadWV):
<script>
$(function() {
// setTimeout waits till the widgetVar is ready!
setTimeout(PF('fileUploadWV').jq.find('input:file').attr('accept', 'image/*'), 2000);
});
</script>
See more:
- Intro to PrimeFaces widgetVar
- How to restrict the file selection dialog to show only specific file types?
Hope this helps.