Uploading contents of a text file to a string in memory using the “Upload” widget in Vaadin 14
问题 I know Vaadin 14 offers the Upload component for the user to either pick a file(s) to upload or to drag-and-drop file(s). But I am not sure how to use it. I want the contents of a plain text file on the web browser’s machine to load into memory as a String or CharSequence on the server machine. While the description page for that component has some examples, I could use a complete yet minimal example of loading plain text. 回答1: Here is an example view in Vaadin 14.1.0.alpha3. I am not an