correct parameters for file.save and node.save to create a new node with a cck imagefield?
OK, have got file.save working with jsonrpc post content like:
method="file.save"¶ms={
"file":{
"file":"BASE64STUFF",
"uid":"5",
"timestamp":"1269406525",
"filename":"test.jpg",
"filepath":"sites/default/files/test.jpg"
},
"sessid":"3qbg2lv0bpjlfve3vim0b7t627"
}
and a subsequent node.save with jsonrpc post content like:
{
"field_image": [ {"0": {"fid":"25"} } ],
"uid":"5",
"title":"test node",
"type":"cardobject"
}
iPhone + JSON + services + drupal - problems with node.save and file.save
I have two issues I am hoping someone can assist with.
Running Drupal 6.16, services 6.x-2.0, json server 6.x-2.0-alpha1.
Have API disabled, sessid enabled.
Can connect, login and retrieve/parse views and nodes with node.get and views.get.
but have no luck with file.save and node.save.
example file.save = method="node.save"&sessid="aeufrgi2kk1tm1ra8rfacg9et5"&node="{"uid":"5","title":"newcontent","type":"mytype","name":"testuser","body":""}"
the user can create content via the web site with these values, but via the services call they get:
{
"#error" = 1;