次のコードを書きました。JSON オブジェクトが必要ですが、常にファイル名の文字列を返します。
var app=$('#failed-fine-uploader').fineUploader({
request: {
endpoint: 'media/upload.php'
}
}).on('complete', function (id, name,responseJSON) {
alert(responseJSON.success);
alert(responseJSON);
});
responseJSON.success は未定義で、responseJSON は文字列です。
これは、upload.php の応答です。
{"success":"true","id":54,"type":"image\/jpeg","size":22568,"ext":"JPG","uploadName":"100-0027_IMG-645.JPG"}
サイズや型などの値をJSONで読み込みたいです。