Hi everyone,
I've asked this in the issue queue, but maybe it will get more attention here. I'm trying to associate a file I created with the file.save service with a user picture, which I created using the user.save service, but not having any success. I'm using Services 6.x-2.x-dev, AMFPHP module 6.x-1.0-beta2, AMFPHP 1.9, and Flash (AS3). I tried passing the filepath and the fileid to the user object, but that doesn't work. Is this something that can be done, without writing my own service (which I don't really have the skills to do)? I had success using Content Profile and passing the fileid to a CCK field there, but now there's a bug with that I'm trying to get around. Any help would be greatly appreciated.
Comments
Try marking the file as temporary
I haven't tried to save a user picture, but saw on another discussion that people had problems if the file they saved was not marked as temporary (http://drupal.org/node/721336#comment-2628940). Try to set the status field to '0'. For files saved with nodes, they become permanent when the node is save, so I'm guessing this might hold for users too. Should be easy to try.
Otherwise, some more details on the errors you're getting would probably help.
Best,
Micah
User.save not saving picture field
I am facing the same issue.
I doubt if this issue is linked with the status; i still gave it a try as the above post suggested still no luck.
The user.save returns a success, yet the picture field is empty.
I have tried passing the uploaded picture's URL to the picture field (complete path, relative path) , but no luck.
Did anybody get this working ?
Any help will be appreciated.
Any luck?
Any luck?
Issue with user picture field not saving
Sudhanwa - Just wondering if you've ever resolved this issue? I've uploaded a file successfully and have an fid to pass in to the 'picture' field, but it's still not working for me. Any help would be appreciated.
貌似我也有这样的需求
不过看来不行啊,不能创建用户的时候给他一个图片url
天空依然蔚蓝~