Click or drag to resize
AttachmentInfoProviderSaveFileToDisk Method
Saves file to the disk.

Namespace: CMS.DocumentEngine
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 9.0.0
Syntax
C#
public static string SaveFileToDisk(
	string siteName,
	string guid,
	string fileName,
	string fileExtension,
	BinaryData fileData,
	bool deleteOldFiles,
	bool synchronization = false
)

Parameters

siteName
Type: SystemString
Site name
guid
Type: SystemString
File GUID
fileName
Type: SystemString
File name
fileExtension
Type: SystemString
File extension
fileData
Type: CMS.CoreBinaryData
File data (byte[] or Stream)
deleteOldFiles
Type: SystemBoolean
Indicates whether files in destination folder with mask '[guid]*.*' should be deleted
synchronization (Optional)
Type: SystemBoolean
Indicates if this function is called from "ProcessTask"

Return Value

Type: String
Returns the path to the file on the disk
See Also