Php 如何使用CURL在Parse中上传文件?
我有以下资料: curl-X柱\ -H“X-Parse-Application-Id:appid” -H“X-Parse-REST-API-Key:restkey” -H“内容类型:文本/普通” -“你好,世界!” 我回来了: {“url”:http://files.parse.com/7680c0e7-b398-4b43-91f0-61b12934c690/08d828ef-1185-4036-b8ab-228764fbeb69-hello.txt,“名称”:“08d828ef-1185-4036-b8ab-228764fbeb69-hello.txt”}Php 如何使用CURL在Parse中上传文件?,php,parsing,curl,Php,Parsing,Curl,我有以下资料: curl-X柱\ -H“X-Parse-Application-Id:appid” -H“X-Parse-REST-API-Key:restkey” -H“内容类型:文本/普通” -“你好,世界!” 我回来了: {“url”:http://files.parse.com/7680c0e7-b398-4b43-91f0-61b12934c690/08d828ef-1185-4036-b8ab-228764fbeb69-hello.txt,“名称”:“08d828ef-1185-4
我应该使用的文件名是什么?返回的URL-您可以在之后获取所有内容 这包括以下几点: curl-X柱\ -H“X-Parse-Application-Id:appid”\ -H“X-Parse-REST-API-Key:reskey”\ -H“内容类型:应用程序/json”\ -d'{ “名称”:“blisdco”, “图片”:{ “名称”:“7680c0e7-b398-4b43-91f0-61b12934c690/08d828ef-1185-4036-b8ab-228764fbeb69-hello.txt”, “类型”:“文件” } }' \ 返回的是: {“createdAt”:“2012-06-12T20:16:05.360Z”,“objectId”:“yHLhqMgBAj”} 如果您在Parse Data Browser中查看CustomerImage表,您将看到条目-包括URL的文件名部分