Upload File

Hello, I am trying to upload file by using,

`MemoryBuffer buffer = new MemoryBuffer();
Upload upload = new Upload(buffer);`



but i can not get the file from “upload” or “buffer”, How can i take the file.

I want to upload excel file and take data from excel file,
please guide me …
thank you

Here’s a code example: https://cookbook.vaadin.com/upload-image-to-file