Upload Avatars through custom form
I need to update user avatars from a custom form (using gravity forms). I’ve hooked into Gravity Forms properly so I have access to both the $_FILES array and a path post upload – is there any function that I can feed either of these pieces of information to to upload the avatar, create the different sizes, and associate to a user with a specified ID?
I’ve tried bp_core_avatar_handle_upload() and managed to get it to return 1 (which I assume means it was successful) but then there is no change to the user’s avatar.
I’m running WordPress 3.5.1 and Buddypress 1.7. I can’t provide a link to the live site.
Thanks in advance for any help you can give
- The topic ‘Upload Avatars through custom form’ is closed to new replies.