Hi there!
I’m trying to add an upload component to my project but I’m unsure what the lambda inside the addSucceededListener method requires, I tried looking at the API but it’s way beyond my current skill level.
I copied this code from the upload page (only changing the identifier of the component):
MultiFileMemoryBuffer buffer = new MultiFileMemoryBuffer();
Upload uploadBox = new Upload(buffer);
uploadBox.addSucceededListener(event -> {
Component component =
createComponent(event.getMIMEType(),
event.getFileName(),
buffer.getInputStream(event.getFileName()));
showOutput(event.getFileName(), component, output);
});
My IDE doesn’t recognise what createComponent is, and furthermore I’m unsure how I can serially take the document and process it, could somebody clarify this for me please?
Many thanks,
Ahmet