Documentation

Upload

upload.before.send #

Arguments
xhr ObjectXMLHttpRequest object.
data ObjectFromData object.
files ArrayArray of sending files.
e ObjectEvent object.

Occurs before sending the upload request to the server.
This event has event.stop method.

upload.complete #

Arguments
response ObjectJSON response

Occurs when the upload complete.

upload.error #

Arguments
response ObjectJSON response

Occurs when the autosave request fails.

Here is the example of JSON error response:

{
    "error": true,
    "message": "Something went wrong..."
}