Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

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

Akram Bouslama
6 years ago May 18, 2015 4:06pm
Vesa Tuononen
6 years ago May 18, 2015 8:29pm
https://vaadin.com/directory#!addon/easyuploads

Use this addon in it you can set accept filter

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