Filter or restrict file type in the browse window of the upload component

Hello everyone ,

Actually i want to restrict the files type In the browse window of the
upload component
.I have made some researches in the forums but it seems that the upload component dosent allow to restict file type . It would be great if anyone could help me to resolve this issue.

Thank you ,


https://vaadin.com/directory#!addon/easyuploads

Use this addon in it you can set accept filter

UploadField upload = new UploadField();
upload.setAcceptFilter("image/*");