Here is the technical approach to achieve this functionality.
My Site’s Edit Profile page uploads photos to
Picture Library under user’s My Site. Event Receiver will be developed and
attached to that library. That Event Receiver will check configuration value
from web configuration file and validate with picture’s size which user will
upload. It will throw an exception if condition doesn’t match.
One Feature will be developed to attach event
receiver for Picture Library and it will be activated when user creates My
Site. One console application will developed to activate that feature for all
existing My Sites.
JS code will be added to SelectPicture2.aspx
page to convert SharePoint generic error with configured error message. This
message will be configured in web configuration file. Select Picture page calls
by Edit profile page to upload picture.
No comments:
Post a Comment