I'm looking at doing the same thing. I need profile image, ideally a set of images / vids.... any new developments?
Your code doesn't upload anything. frogabog is correct there. it does save the filename in a extended field....
though like me, you probably want to have the user images uploaded into a user dir. i've been looking at
http://forums.modx.com/thread/44067/revolution-create-a-folder-based-on-newly-registered-username#dis-post-436488 on how to make the user dir creation happen.... i was hoping there was a way to make Upload to Users CMP on the front end work, which may be a nice solution.. but my php skills are lacking...
fileUpload can upload a files to a dir. i was able to get a file into a user dir say... assests/userfiles/(userid#)
[[!FileUpload?
&filefields=`1`
&path=`assets/userfiles/[[+modx.user.id]]` & possible if in the login snippits. &path=`assets/userfiles/[[+id]]
]]
though i have found if i put file upload on the same page as update profile. once i upload the file the rest of the update form gets saved. I have yet to try using a posthook on the update. The issue i have not been able to figure out is how to save that path and file name,into the [[+photo]] extended field, for a later call in a <img> tag. perhaps use addon FileLister to then list all files in &path=`assets/userfiles/[[+modx.user.id]] and then output with a tpl as needed?
I've done alot of searching and yet to find a profile image solution other than the extra gravatar which users of my site wont want to go to gravatar to sign up just to get a profile image... I'd be more than happy to contribute anything i get working to the community. perhaps get it as a new feature for the login extra.