0

When I edit my user profile on a My Site with default settings, I received an error for a picture that is too large.

The message says "Choose a smaller file to upload."

I've received this message for a picture with file size 5MBs or larger, but not one that is around 1MB.

2 Answers 2

3

~4.7MB is the limit (5000000 bytes).

2
  • Sounds like it could be right. Do you have a reference?
    – Tom Resing
    Dec 6, 2012 at 18:00
  • 1
    public ProfileImagePicker() { this.m_strErrorMsg = string.Empty; this.m_profileType = ProfileType.User; this.m_nMaxBytes = 0x4c4b40; this.m_nTextboxSize = 30; } In Microsoft.SharePoint.Portal.WebControls.ProfileImagePicker.
    – user6024
    Dec 6, 2012 at 21:23
0

The user profile images are stored on the My Site host site collection in a Picture Library called "User Photos". Since the images are stored as files in a library, the default limit of 50 MB per file should apply there too. (You can increase the limit to 2GB per file)

Here is the Technet article with the library limits: http://technet.microsoft.com/en-us/library/cc262787.aspx#ListLibrary

For your situation: has anybody made any customization on the "User Photos" library? Maybe somebody has added an event receiver to check the file size of the photo being uploaded?

Here is a detailed article on User Profile pictures in 2010. Maybe it can give you some info: http://blogs.msdn.com/b/spsocial/archive/2011/01/07/photo-management-in-sharepoint-2010.aspx

1
  • Great links and information, but I'm afraid they don't offer the correct answer. I've tried this on two seperate farms. Have you tried uploading a 5MB image? I think you may find you receive the same error message.
    – Tom Resing
    Jul 10, 2012 at 16:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.