-1
我写了下面的代码,我期待一个JSON对象,但总是返回一个字符串与文件的名称。罚款上传resposeJSON
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的值等的尺寸和类型。
“restitutisce”是什么?猜猜“返回” – djot
是的,抱歉的错误 – Andrew