We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.streams.
Package com.vaadin.flow.server.streams
Interface InMemoryUploadCallback
All Superinterfaces:
Callback interface for handling in-memory uploads in
InMemoryUploadHandler
.
This interface is used to process the upload metadata after the upload is
complete. The method invocation may throw an IOException
to handle
cases where processing the upload fails.
Since:
24.8
-
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(UploadMetadata metadata, byte[] data) Applies the given callback once the in-memory data upload is complete.
-
Method Details
-
complete
Applies the given callback once the in-memory data upload is complete.
Parameters:
metadata
- the upload metadata containing relevant information about the uploadThrows:
IOException
- if an I/O error occurs in the callback
-