-
- 74 Posts
Hey guys & gals,
I was wondering if it is possible to update a logged in user's profile picture on the front end using modx file manager. I was able to give the user the ability to upload and edit/change the profile picture via a prehook within the UpdateProfile snippet. If the user wants to change their profile picture, he/she would have to upload another photo to the server.
But what if I wanted the user to have the ability to use past images that he/she had already uploaded? Can this be done? And if so, how?
-
- 24,544 Posts
You might be able to use your prehook to add thumbnails of the user's existing pictures to your UpdateProfile page and let the user select one. The thumbnails could have radio buttons to select one so the selection would be part of the $_POST array. You'd have to build that part of the form on the fly in your prehook.