AttachmentBinaryHelperSaveFileToDiskInternal Method |
Saves file to the disk.
Namespace: CMS.DocumentEngineAssembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 12.0.0
Syntax protected virtual string SaveFileToDiskInternal(
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:
StringReturns the path to the file on the disk.
See Also