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.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
vaadin-upload: Change upload button caption
Hi all,
Is there anyway to change the caption of the upload button from "UPLOAD FILES" to whatever is required?
Thanks a lot in advance
Fran
Hi!
There's a i18n property for vaadin-upload. You can modify the i18n.addFiles.one and i18n.addFiles.many to change the button's text. You can find an example in here: https://cdn.vaadin.com/vaadin-core-elements/master/vaadin-upload/demo/i18n.html
Sami Suo-Heikki: Hi!
There's a i18n property for vaadin-upload. You can modify the i18n.addFiles.one and i18n.addFiles.many to change the button's text. You can find an example in here: https://cdn.vaadin.com/vaadin-core-elements/master/vaadin-upload/demo/i18n.html
Thanks Sami. I actually solved the problem by setting programatically a property value of that i18n object when having the component initialized. For me, it only worked getting the element from the dom, and setting it manually.