public class UploadSuccessEvent extends UploadEvent
UploadSuccessHandler and register it via the .Uploader#setUploadSuccessHandler(UploadSuccessHandler)
method in order to access uploader success events.
Note that 'uploadSuccess' is fired when the entire uploader has been transmitted and the server returns a HTTP 200 status code. Any data outputted by the server is available in the server data property.
Due to some bugs in the Flash Player the server response may not be acknowledged and no
uploadSuccess event is fired by Flash. In this case the .client.Uploader#setAssumeSuccessTimeout(long)
setting is checked to see if enough time has passed to fire uploadSuccess anyway. In this
case the received response parameter will be false.
The Uploader.setHttpSuccess(long...) setting allows
uploadSuccess to be fired for HTTP status codes other than 200. In this case no server data is
available from the Flash Player.
At this point the uploader is not yet complete. Another uploader cannot be started from uploadSuccess.
| Constructor and Description |
|---|
UploadSuccessEvent(File file,
java.lang.String serverData,
java.lang.String responseReceived)
This constructor is intended for internal use only.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResponseReceived()
Return the HTTP response code sent from the server at the completion of the uploader.
|
java.lang.String |
getServerData()
Return any HTTP response data sent from the server at the completion of the uploader.
|
getFilepublic UploadSuccessEvent(File file, java.lang.String serverData, java.lang.String responseReceived)
UploadSuccessHandler.file - The native javascript object containing the details of the file being uploaded.serverData - Any HTTP response data sent from the server at the completion of the
uploader.responseReceived - The HTTP response code sent from the server at the completion of the
uploader.public java.lang.String getServerData()
public java.lang.String getResponseReceived()