Click or drag to resize
AttachmentInfo Constructor (HttpPostedFile, Int32, Guid)

Note: This API is now obsolete.

Creates a new AttachmentInfo object based on the file posted through the upload control.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
[ObsoleteAttribute("Use 'CMS.DocumentEngine.AttachmentInfo(CMS.Base.IUploadedFile, System.Int32, System.Guid)' instead. You can use the 'CMS.Base.UploadExtensions.ToUploadedFile' extensions method for converting 'System.Web.HttpPostedFile' to the 'CMS.Base.IUploadedFile'.")]
public AttachmentInfo(
	HttpPostedFile postedFile,
	int documentId,
	Guid attachmentGuid
)

Parameters

postedFile
Type: System.WebHttpPostedFile
Posted file
documentId
Type: SystemInt32
Document ID
attachmentGuid
Type: SystemGuid
Attachment GUID
See Also