小编Lok*_*oki的帖子

Jquery文件上载SyntaxError:JSON.parse:JSON数据之后的意外非空白字符

我想使用产品但是当上传图片时我看到错误

SyntaxError:JSON.parse:JSON数据之后的意外非空白字符

script directory: Folder2
directory Jquery-file-upload: function/blueimp-jQuery-File-Upload/
in main.js i edit rows

$('#fileupload').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: 'server/php/'
});
Run Code Online (Sandbox Code Playgroud)

$('#fileupload').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: '../function/blueimp-jQuery-File-Upload/server/php/'
});
Run Code Online (Sandbox Code Playgroud)

图像true保存在服务器上,但在上传后显示错误.

Step1 http://s55.radikal.ru/i149/1211/10/8c8d911589de.jpg

Step2错误 http://s019.radikal.ru/i604/1211/8c/7e05d92b30ef.jpg

furebug对请求的回应

[{"name":"1353755388.jpg","size":879394,"type":"image\/jpeg","url":"http:\/\/malish-ka.ru\/function\/blueimp-jQuery-File-Upload\/server\/php\/files\/1353755388.jpg","thumbnail_url":"http:\/\/malish-ka.ru\/function\/blueimp-jQuery-File-Upload\/server\/php\/files\/thumbnail\/1353755388.jpg","upload_to_db":true,"delete_url":"http:\/\/malish-ka.ru\/function\/blueimp-jQuery-File-Upload\/server\/php\/?file=ExPRoG-1353755388.jpg","delete_type":"DELETE"}]/home/m/malishkaru/public_html/function/blueimp-jQuery-File-Upload/server/php
Run Code Online (Sandbox Code Playgroud)

告诉我,为什么我有这个错误?出错时?

php jquery file-upload

5
推荐指数
1
解决办法
9719
查看次数

标签 统计

file-upload ×1

jquery ×1

php ×1