Package com.vaadin.flow.server.streams
Interface FileUploadCallback
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface for handling file uploads in
AbstractFileUploadHandler.
This interface is used to process the uploaded file and its metadata after
the upload is complete.
The method invocation may throw an IOException to handle cases where
hadnling a file fails.- Since:
- 24.8
-
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(UploadMetadata metadata, File file) Applies the given callback once the file upload is complete.
-
Method Details
-
complete
Applies the given callback once the file upload is complete.- Parameters:
metadata- the upload metadata containing relevant information about the uploadfile- the file to which the data will be written- Throws:
IOException- if an I/O error occurs in the callback
-