Search code examples
fine-uploader

In fine-uploader is there a callback for the json resturned by the server?


By default fine-uploader marks an upload as a success when it recieves the following json file.

{ "success": "true" }

Does fine-uploader support passing extra data back to the client and doing something with it?


Solution

  • All data passed from your server can be accessed on the 3rd parameter passed to your onComplete event handler, which is a JavaScript object. Note that the `XMLHttpRequest instance used to send the request is also available as the 4th param.