Click or drag to resize
AvatarInfoProviderUploadAvatar Method (AvatarInfo, HttpPostedFile, Int32, Int32, Int32)

Note: This API is now obsolete.

Uploads and resizes (if needed) avatar to specified AvatarInfo and sets its properties.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.Membership.AvatarInfoProvider.UploadAvatar(CMS.Membership.AvatarInfo, CMS.Base.IUploadedFile, System.Int32, System.In32, System.In32)' instead. You can use the 'CMS.Base.UploadExtensions.ToUploadedFile' extensions method for converting 'System.Web.HttpPostedFile' to the 'CMS.Base.IUploadedFile'.")]
public static void UploadAvatar(
	AvatarInfo ai,
	HttpPostedFile postedFile,
	int maxWidth,
	int maxHeight,
	int maxSideSize
)

Parameters

ai
Type: CMS.MembershipAvatarInfo
postedFile
Type: System.WebHttpPostedFile
maxWidth
Type: SystemInt32
maxHeight
Type: SystemInt32
maxSideSize
Type: SystemInt32
See Also