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;
"#message" = "Access denied";
}
and with the file.save, I try a post like:
method="file.save"&sessid="aeufrgi2kk1tm1ra8rfacg9et5"&file="{"filemime":"image/jpeg","fid":"","status":"1","file":"%2F9j%2F4AAQS... HEAPS OF BASE 64 image data ....","uid":"5","filesize":"53675","timestamp":"1269266556","filename":"CEE53B84-CE0C-480E-9BA7-C711295F15E0-11709-00003A626C868B2E.jpg","filepath":"sites/default/files/previewimage/CEE53B84-CE0C-480E-9BA7-C711295F15E0-11709-00003A626C868B2E.jpg"}"
the directory exists, but the call returns a plain "0", no error message or JSON block.
I have been trying to resolve this for 4 days now and am rapidly getting nowhere, I have tried many variations of the calls, such as not including the "Fid" parameter, and/or the status, etc.
Any ideas? Anyone? Please??
Andrew