{hero}

uploadXhrSuccess

Since: Editor 1.6

File upload has been completed.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

This event is triggered when a file has been uploaded using the upload or uploadMany field types, and provides the option of modifying the JSON data returned from the server. This can be useful if the server returns data in a form that does not match that expected by Editor or you wish to be notified whenever an upload is completed.

The event is triggered prior to the JSON returned from the server being processed by Editor, thus giving the ability to modify the data.