public interface UploadProgressHandler
uploader.setUploadProgressHandler(new UploadProgressHandler() {
public boolean onUploadProgress(UploadProgressEvent event) {
Window.alert("Uploader progressed to " + event.getBytesTotal() + " bytes");
return true;
}
});
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.
See the documentation on the UploadProgressEvent class for more details on the data
available when a progress event occurs.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onUploadProgress(UploadProgressEvent uploadProgressEvent)
This method is fired whenever a progress event occurs in the Uploader component.
|
boolean onUploadProgress(UploadProgressEvent uploadProgressEvent)
UploadProgressEvent class for more details on the data available when this event
is fired.uploadProgressEvent - The details of the event that occurred.