Adds the temporary attachment to the document, updates the attachment if currently present.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)
Parameters
- formGuid
- Type: System Guid
GUID of the form
- attachmentGuid
- Type: System Guid
GUID of the attachment (optional)
- groupGuid
- Type: System Guid
GUID of the attachment group (optional)
- file
- Type: System String
Attachment file path
- siteId
- Type: System Int32
Site ID
- width (Optional)
- Type: System Int32
New width of the image attachment (Use ImageHelper.AUTOSIZE to keep the width)
- height (Optional)
- Type: System Int32
New height of the image attachment (Use ImageHelper.AUTOSIZE to keep the height)
- maxSideSize (Optional)
- Type: System Int32
Maximal side size of the image attachment
Return Value
Type: AttachmentInfoSee Also