Vaadin 8 Upload - Complete Code

Hi! As I’m pretty new to Vaadin (currently using version 8), I can’t really wrap my head around the file upload issue in Vaadin 8. I tried to build a sensible and working solution using the examples and manuals I found on the web, however all of them seem incomplete and thus don’t work. Could you please provide me with a complete (more or less) code I might reuse to save my images into the Postgres? I’ll appeciate!

There is a bit old, but comprehensive example here (actually two). The other loads the file to temporary file, and other to memory buffer.

https://github.com/vaadin/book-examples/blob/master/src/com/vaadin/book/examples/component/UploadExample.java

There is simple to memory buffer loading example here too

https://github.com/TatuLund/UploadButton/blob/master/uploadbutton-demo/src/main/java/org/vaadin/uploadbutton/demo/DemoUI.java

Thank you very much, Tatu. I’ll give it a try and let you know how it goes.:slight_smile: