I wrote the following code, I expect a JSON object but returns always a string with the name of the file.
var app=$('#failed-fine-uploader').fineUploader({
request: {
endpoint: 'media/upload.php'
}
}).on('complete', function (id, name,responseJSON) {
alert(responseJSON.success);
alert(responseJSON);
});
responseJSON.success is undefined and responseJSON is a string.
This is the response of upload.php:
{"success":"true","id":54,"type":"image\/jpeg","size":22568,"ext":"JPG","uploadName":"100-0027_IMG-645.JPG"}
I would like to read the values ββin JSON like size and type.