mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
Stringfy correctly the params sent to the api
This commit is contained in:
parent
d64daa7d49
commit
c0d00c8b7c
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ Item
|
||||||
|
|
||||||
var base64Image = androidImagePicker.imageToBase64(resultFile)
|
var base64Image = androidImagePicker.imageToBase64(resultFile)
|
||||||
|
|
||||||
rsApi.request("/identity/set_avatar", {"gxs_id": cntDt.md.gxs_id, "avatar": base64Image },
|
rsApi.request("/identity/set_avatar", JSON.stringify({"gxs_id": cntDt.md.gxs_id, "avatar": base64Image }),
|
||||||
function (res){
|
function (res){
|
||||||
console.log("Avatar changed! " , JSON.stringify(res))
|
console.log("Avatar changed! " , JSON.stringify(res))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue