Adds an attachment to the document. Does not update the document to the database, updates the attachment if currently present.
            
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- node
 - Type: CMS.DocumentEngine TreeNode
Document node 
- guidColumnName
 - Type: 
System String
Column containing the Attachment GUID (optional) 
- attachmentGuid
 - Type: 
System Guid
GUID of the attachment (optional) 
- groupGuid
 - Type: 
System Guid
GUID of the attachment group (optional) 
- file
 - Type: 
System Object
Attachment file (HttpPostedFile, AttachmentInfo or file path) 
- tree
 - Type: CMS.DocumentEngine TreeProvider
TreeProvider to use 
- width (Optional)
 - Type: 
System Int32
New width of the image attachment 
- height (Optional)
 - Type: 
System Int32
New height of the image attachment 
- maxSideSize (Optional)
 - Type: 
System Int32
Maximum side size of the image attachment 
Return Value
Type: AttachmentInfoSee Also