Click or drag to resize
MediaFileInfoProviderSaveFileToDiskInternal Method
Saves media file to disk and returns the applied file path.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 9.0.0
Syntax
C#
protected virtual string SaveFileToDiskInternal(
	string siteName,
	string libraryFolder,
	string librarySubFolderPath,
	string fileName,
	string fileExtension,
	Guid fileGuid,
	BinaryData fileData,
	bool synchronization,
	bool ensureUniqueFileName,
	bool skipChecks,
	string filePath,
	string fileSubFolderPath
)

Parameters

siteName
Type: SystemString
Name of the site of the media library
libraryFolder
Type: SystemString
Media library root folder
librarySubFolderPath
Type: SystemString
Subfolder path
fileName
Type: SystemString
Name of the file
fileExtension
Type: SystemString
Extension of the file
fileGuid
Type: SystemGuid
File GUID
fileData
Type: CMS.CoreBinaryData
File data
synchronization
Type: SystemBoolean
Indicates if method is running by web farms synchronization
ensureUniqueFileName
Type: SystemBoolean
Indicates if unique file name should be ensured
skipChecks
Type: SystemBoolean
Skip check for file path and ensuring physical file path
filePath
Type: SystemString
File path
fileSubFolderPath
Type: SystemString
File subfolder path

Return Value

Type: String
See Also