com.vaadin.flow.component.upload.

Class StartedEvent

    • Constructor Detail

      • StartedEvent

        public StartedEvent(Upload source,
                            String filename,
                            String MIMEType,
                            long contentLength)

        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 Detail

      • getUpload

        public Upload getUpload()

        Uploads where the event occurred.

        Returns:

        the Source of the event.

      • getFileName

        public String getFileName()

        Gets the file name.

        Returns:

        the filename.

      • getMIMEType

        public String getMIMEType()

        Gets the MIME Type of the file.

        Returns:

        the MIME type.

      • getContentLength

        public long getContentLength()

        Returns:

        the length of the file that is being uploaded