The response body was not included in the fileCB data. I made a small change that should fix the problem. The javascript for the modified uploader.js is located here:
http://hackthebrowser.org/u/steve/js/uploader_1.0.3-min.jsThe response data is stored in a new "value" field in the callback result object:
CODE
var fileCallback = function(res) {
if (res.success && res.action === "uploaded") {
// dump_json(res.value);
}
};
a JSON.Stringify dump of above:
CODE
{
"statusCode":200,
"statusString":"200 OK",
"headers":
{
"Connection":"close",
"Content-Type":"text/html",
"Date":"Mon 05 Jan 2009 23:21:57 GMT",
"Server":"Apache/1.3.41 (Darwin) PHP/5.2.6",
"Transfer-Encoding":"Identity",
"X-Powered-By":"PHP/5.2.6"
},
"body":"Upload Recieved"
}
Let me know if this works for you. If so, we'll get the documentation updated and the javascript uploaded to our site.
Cheers,
Steve