Class StartedEvent

All Implemented Interfaces:
Serializable

public class StartedEvent extends ComponentEvent<Upload>
StartedEvent event is sent when the upload is started to received.
Author:
Vaadin Ltd.
See Also:
  • Constructor Details

    • StartedEvent

      public StartedEvent(Upload source, String fileName, String mimeType, long contentLength)
      Create an instance of the event.
      Parameters:
      source - the source of the file
      fileName - the received file name
      mimeType - the MIME type of the received file
      contentLength - the length of the received file
  • Method Details

    • getUpload

      public Upload getUpload()
      Upload where the event occurred.
      Returns:
      the source of the event
    • getFileName

      public String getFileName()
      Get the file name.
      Returns:
      the file name
    • getMIMEType

      public String getMIMEType()
      Get the MIME type of the file.
      Returns:
      the MIME type
    • getContentLength

      public long getContentLength()
      Get the length of the file.
      Returns:
      the length of the file that is being uploaded