Package com.vaadin.flow.server.streams
Interface InMemoryUploadCallback
- All Superinterfaces:
Serializable
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 TypeMethodDescriptionvoidcomplete(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 uploaddata- the byte array containing the uploaded data- Throws:
IOException- if an I/O error occurs in the callback
-