public interface UploadErrorHandler
uploader.setUploadErrorHandler(new UploadErrorHandler() {
public boolean onUploadError(UploadErrorEvent event) {
Window.alert("Unable to uploader file " + event.getFile().getName());
return true;
}
});
Note that the 'uploadError' event is fired any time an uploader is interrupted or does not complete successfully. The error code parameter indicates the type of error that occurred.
Stopping, Cancelling or returning 'false' from uploadStart will cause uploadError to fire. Uploader error will not fire for files that are cancelled but still waiting in the queue.
See the documentation on the UploadErrorEvent class for more details on the data
available when an uploader error event occurs.
| Modifier and Type | Method and Description |
|---|---|
boolean |
onUploadError(UploadErrorEvent uploadErrorEvent)
This method is fired whenever a uploader error event occurs in the Uploader component.
|
boolean onUploadError(UploadErrorEvent uploadErrorEvent)
UploadErrorEvent class for more details on the data available when this event is
fired.uploadErrorEvent - The details of the event that occurred.