Upload component only for CSV files

I would use Upload component to uploading CSV files. Unfortunately, client can upload all files (.jpg, .pdf, and so on). Is there any possibility to allow to uploading only csv files? I was searching in methods of component upload but I can not find.

Thanks in advance!

Have a look at this thread:
https://vaadin.com/forum/#!/thread/34635