Jump to content

Recommended Posts

Posted

Hello,

I need to upload an image to the user page, can anybody point me out the basic code for this?

This is my code

if ($input->post->avatar) { 
	
	$user->images = $input->post->avatar;
	$user->save();
	
}

Thank you very much

Posted

Since $users are basicly the same as $pages you can follow soma's instructions or look into this thread. You are not the first ;)  Also you might want to use Google to search the forum with the query: site:processwire.com/talk.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...