+ 5

how can I upload an image and display it as profile pics in my profile management page of my website Hey guys I'm trying to add

how can I upload an image and display it as profile pics in my profile management page of my website Hey guys I'm trying to add a profile picture to a page in my website. If a pics is uploaded to a folder called images how can I echo out that particular picture the user uploaded and use it as the profile image all throughout the page. And a way to change them if the user want a different photo. Please any help would be appreciated thanks.

4th Mar 2018, 3:20 PM
Franklyn Omeben
Franklyn Omeben - avatar
1 Answer
+ 2
so when the user uploads a picture and then it gets stored in the image folder you could also create a new folder inside the image folder with the name of the user. so whenever the user uploads a new profile pic javascript will get the image from the users folder and paste it into the profile image place, the user has to refresh the page if he changes the pic but with angular you can make it change instantly
10th Mar 2018, 4:29 PM
TrueJu
TrueJu - avatar