MediaFileInfoProviderSaveFileToDisk Method |
Saves media file to disk and returns the applied file path.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 10.0.0
Syntaxpublic static string SaveFileToDisk(
string siteName,
string libraryFolder,
string librarySubFolderPath,
string fileName,
string fileExtension,
Guid fileGuid,
BinaryData fileData,
bool synchronization,
bool ensureUniqueFileName = true
)
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 (Optional)
- Type: SystemBoolean
Indicates if unique file name should be ensured
Return Value
Type:
String
See Also