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.

@FunctionalInterface public interface FileUploadCallback extends Serializable
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 Type
    Method
    Description
    void
    complete(UploadMetadata metadata, File file)
    Applies the given callback once the file upload is complete.
  • Method Details

    • complete

      void complete(UploadMetadata metadata, File file) throws IOException
      Applies the given callback once the file upload is complete.
      Parameters:
      metadata - the upload metadata containing relevant information about the upload
      file - the file to which the data will be written
      Throws:
      IOException - if an I/O error occurs in the callback