public class UploadProgressEvent extends UploadEvent
UploadProgressHandler and register it via the .Uploader#setUploadProgressHandler(UploadProgressHandler) method in order to access progress
events.
Note that the 'uploadProgress' event is fired periodically by the Flash Control. This event is useful for providing UI updates on the page.
Note: The Linux Flash Player fires a single uploadProgress event after the entire file has been uploaded. This is a bug in the Linux Flash Player that we cannot work around.
| Constructor and Description |
|---|
UploadProgressEvent(File file,
long bytesComplete,
long bytesTotal)
This constructor is intended for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesComplete()
Return the bytes transferred since the uploader process began.
|
long |
getBytesTotal()
Return the total size of the file being uploaded.
|
getFilepublic UploadProgressEvent(File file, long bytesComplete, long bytesTotal)
UploadProgressHandler.file - The native javascript object containing the details of the file being uploaded.bytesComplete - Bytes transferred since the uploader process began.bytesTotal - Total size of the file being uploaded.