Vaadin 7

vaadin 7 coding how to write this code:
upload.setAcceptedFileTypes(“image/jpeg”, “image/png”, “image/gif”);

upload file only accept in jpeg how to controll
if possible only allowed jpeg file only in vaadin7?

:disappointed:

like
Untitled.png

The EasyUploads add-on can do that: EasyUploads - Vaadin Add-on Directory

example: easyuploads/src/test/java/org/vaadin/easyuploads/demoandtestapp/LimitingSizeAndType.java at master · parttio/easyuploads · GitHub

vaadin 7 upload must not change any possible

No

thank you sir