Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedUpload Photo and Change Profile PhotoUpload Photo and Change Profile Photo
Previous
 
Next
New Post
11/21/2012 3:56 AM
 

Hi,

I'm using DNN6.2.4. For some reason, I need to develop a control for user to upload and change their profile photo, may I know how to do it?

The profile photo will be uploaded in which folder? Is there any method in DNN can do that? And how to change the profile photo of an user?

Thanks,

Regards,
Apple

 
New Post
11/21/2012 6:56 AM
 
Login as User. Click Username which replaces the login link to go to Profile. Click Edit Profile.

Bill
 
New Post
11/21/2012 6:13 PM
 

Hi Bill,

Thank you, but I need to develop a new DNN module for users to upload and change their profile photo.

Do you know how to do it?

 
New Post
11/22/2012 6:44 AM
 

Or anyone can give an example on how to use DnnImageEditControl? Thanks.

 
New Post
11/23/2012 3:35 AM
 

Hi

Dnn profile photo is stored in "portals/_default/Users/UserId/" For example, "Portals\_default\Users\001\01\1" 

You can use AddFile method of FileController class object  to upload photo which returns a fileId. Then you need to assign this fileId to Profile.Photo property of UserInfo object. 

For reference you can check below link:

http://stackoverflow.com/questions/7767652/how-to-update-dotnetnuke-userprofile-image-in-codebehind

We have also created one module, which allow user to take picture from webcam or browse and set as profile picture. You can download from below link:

http://store.dotnetnuke.com/home/product-details/profile-photo-module

Thanks
Sibabrata
Mindfire Solutions

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedUpload Photo and Change Profile PhotoUpload Photo and Change Profile Photo


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out