I am using Vaadin 10 and have this minimal example:
@Route(value = "upl")
@Slf4j
public class UploadTestView extends HorizontalLayout {
public UploadTestView() {
MemoryBuffer buffer = new MemoryBuffer();
Upload upload = new Upload(buffer);
upload.addSucceededListener(event -> {
log.info("Received "+event.getFileName()+" of size "+event.getContentLength());
});
add(upload);
}
}
I see the upload component under the route, and using the Developer Tools of chrome I can see that the file was sent to the backend.
However, the SuccessListener is not called (nor are other Listeners called, I tried them.
Hi. Daniel, if you can provide more details on the setup, or even a minimal app that reproduces the issue, you can open an issue for https://github.com/vaadin/vaadin-upload-flow/issues so we can take a look at it and fix it if there is a bug.
Thomas Kratz:
I face the same problem here, it’s a spring boot 2 app with AppLayout and my succeededListenr is never called. Did you find a solution to this one?
Thank you for asking this question. I run into the same problem but because of you I found the solution within minutes.
I have to say I really like Vaadin very much, but these are things that I can not understand. That should be in the documentary and be mentioned in examples. Otherwise you will search forever and find no solution, assuming using SpringBoot isn’t that occasional.