Wednesday, 5 October 2016

Salesforce Chatter Profile Pic Upload

Uploads a user’s photo to their Chatter profile page


To upload chatter profile pic from visual force page no need to write single piece of apex code or lot of visual force components

By using only one visual force component we can achieve this

By using below component we can Uploads a user’s photo to their Chatter profile page.

Visual Force page:

<apex:page >
    <chatter:userPhotoUpload showOriginalPhoto="true"/>
</apex:page>




Note :  

1. To use this component, you must enable Chatter in the org.

2. Users must belong to either Standard User, Portal User, High Volume Portal User, or          Chatter External User profiles. 
3. In apex page component "showHeader" attribute should "true"