I'm using jquery file upload and it keeps returning a data.result of undefined in my 'done' callback. For the server side I am using PHP Zend framework. How do I get results back from the server?
Every other browser works fine besides IE. I saw this question on IE issues (jquery file upload - IE done callback data.result issue), but I am not even getting anything back and I've tried the suggestions in the comments (setting response content type to text/html or text/plain).
This is my js code:
$('div.input-file.button_image input').fileupload({
type: 'POST',
limitConcurrentUploads: 1
});
$('div.input-file.button_image input')
.bind('fileuploaddone', function (e, data) {
if (data.result[0].body) {
var html = data.result[0].body;
result = {};
result.thumbnail_url = "";
result.rotate_url = "";
result.delete_url = "";
} else {
JSON.parse(data.result);
}
}