onSuccess receives server response data

Also, fix the upload example
Build