We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.upload.
Package com.vaadin.flow.component.upload
Class StartedEvent
All Implemented Interfaces:
StartedEvent event is sent when the upload is started to received.
Author:
Vaadin Ltd.
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionStartedEvent
(Upload source, String fileName, String mimeType, long contentLength) Create an instance of the event.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the length of the file.
Get the file name.
Get the MIME type of the file.
Upload where the event occurred.
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
StartedEvent
Create an instance of the event.
Parameters:
source
- the source of the filefileName
- the received file namemimeType
- the MIME type of the received filecontentLength
- the length of the received file
-
-
Method Details
-
getUpload
Upload where the event occurred.
Returns:
the source of the event
-
getFileName
Get the file name.
Returns:
the file name
-
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
-