Click or drag to resize
MetaFileInfoProviderSaveFileToDisk Method (String, String, String, String, BinaryData, Boolean, Boolean)
Saves file to the disk.

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

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
Type: SystemBoolean
Indicates if this function is called from "ProcessTask"

Return Value

Type: String
See Also