Adding User Profile Image with Register Snippet

Hello,

I am having difficulty figuring out how to go about adding a profile picture input field to my user registration form using the Register snippet. I was able to find this discussion about how to update an existing user’s profile picture:

but I am struggling to figure out how to apply this to a form using the Register snippet. Can anyone give me an example of how I would create a snippet to somehow take the upload input’s value, and then save that value to the file system?

Thanks!

My guess is, that it should work pretty much the same way with the Register snippet as it does with the UpdateProfile snippet.

Maybe use a “postHook” instead of a “preHook”, so that you only copy the image file, if the user was successfully registered.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.