Interface JmixFileUpload.Receiver

All Superinterfaces:
Serializable
Enclosing class:
JmixFileUpload

public static interface JmixFileUpload.Receiver extends Serializable
Interface that must be implemented by the upload receivers to provide the JmixFileUpload component an output stream to write the uploaded data.
  • Method Summary

    Modifier and Type
    Method
    Description
    receiveUpload(String fileName, String mimeType)
    Invoked when a new upload arrives.
  • Method Details

    • receiveUpload

      OutputStream receiveUpload(String fileName, String mimeType)
      Invoked when a new upload arrives.
      Parameters:
      fileName - the desired fileName of the upload, usually as specified by the client.
      mimeType - the MIME type of the uploaded file.
      Returns:
      Stream to which the uploaded file should be written.