AttachmentInfoProvider AddTemporaryAttachment Method (Guid, Guid, Guid, String, Int32, Int32, Int32, Int32)Kentico 8.1 API Reference
Adds the temporary attachment to the document, updates the attachment if currently present.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

formGuid
Type: OnlineSystem Guid
GUID of the form
attachmentGuid
Type: OnlineSystem Guid
GUID of the attachment (optional)
groupGuid
Type: OnlineSystem Guid
GUID of the attachment group (optional)
file
Type: OnlineSystem String
Attachment file path
siteId
Type: OnlineSystem Int32
Site ID
width (Optional)
Type: OnlineSystem Int32
New width of the image attachment (Use ImageHelper.AUTOSIZE to keep the width)
height (Optional)
Type: OnlineSystem Int32
New height of the image attachment (Use ImageHelper.AUTOSIZE to keep the height)
maxSideSize (Optional)
Type: OnlineSystem Int32
Maximal side size of the image attachment

Return Value

Type: AttachmentInfo
See Also