public interface DropzoneEventHandler
Dropzone, if needed, instance your
own DropzoneEventHandler and implement the required method| Modifier and Type | Method and Description |
|---|---|
void |
onAddedFile(File file)
When a file is added
|
void |
onCancelled(File file)
Called when a file upload gets canceled.
|
void |
onComplete(File file)
Called when the upload was either successful or erroneous.
|
void |
onError(File file,
String message,
XHRObjet xhrObject)
An error occured.
|
void |
onMaxFilesExceeded(File file)
Called for each file that has been rejected because the number of files
exceeds the maxFiles limit.
|
void |
onMaxFilesReached(File file)
Called when the number of files accepted reached the maxFiles limit.
|
void |
onProcessing(File file)
When a file gets processed (since there is a queue not all files are
processed immediately).
|
void |
onRemovedfile(File file)
Called whenever a file is removed from the list.
|
void |
onSending(File file,
FormData formData,
XHRObjet xhrObject)
Called just before each file is sent.
|
void |
onSuccess(File file,
String response)
The file has been uploaded successfully.
|
void |
onThumbnail(File file,
String dataURI)
When the thumbnail has been generated.
|
void |
onUploadProgress(File file,
int progressSent,
int bytesSent)
Gets called periodically whenever the file upload progress changes.
|
void onAddedFile(File file)
file - that was addedvoid onCancelled(File file)
file - that was cancelledvoid onComplete(File file)
file - that was completed, either was sucess or failiturevoid onError(File file, String message, XHRObjet xhrObject)
file - instancemessage - from the errorxhrObject - null if not present (ommited by javascript code)void onMaxFilesExceeded(File file)
file - that was rejected because of the maxFile limitvoid onMaxFilesReached(File file)
file - the last file that was acceptedvoid onProcessing(File file)
file - void onRemovedfile(File file)
file - void onSending(File file, FormData formData, XHRObjet xhrObject)
file - formData - xhrObject - void onSuccess(File file, String response)
file - void onThumbnail(File file, String dataURI)
file - dataURI - void onUploadProgress(File file, int progressSent, int bytesSent)
file - progressSent - percentage (0-100)bytesSent - Copyright © 2015. All rights reserved.