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

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.