Here I am sharing you template file and the related functions.php file code to register a wordpress user ( user role is Editor)
The template is doing the following to register a new wordpress user
- Upload image
- Send mail to Admin and Registered user both after successful registration
- Saving the profile or uploaded image in /wp-content/uploads/USER_ID
- Redirect to a url ( slug is used in the code) after successful registration

