我正在尝试在 parse.com 的已定义类用户中插入图像,但不起作用并返回错误 400 错误请求。使用另一个类,它可以完美运行!
$.ajax({
type: 'POST',
headers: {'X-Parse-Application-Id':'qS0KLMx5h9lFL*hM9EEPiTS3VMk','X-Parse-REST-API-
Key':'nh3eoUo9G*VQzvbF2gMhcKJIfIt1Gm','Content-Type': 'application/json'},
url: "https://api.parse.com/1/classes/_User/",
data: '{"name" : "An Image", "image" : {"name" : '+"\""+"b3b47ce2-62dc-4861-a0ad-
79cfffe9b07a-foto ste.jpg"+"\""+', "__type" : "File"}}',
contentType: "application/json",
success: function(data) {
console.log(data );
},
error: function(data) {
console.log("ko" );
}
});