MediaFileInfoProviderGetMediaFilePath Method (String, Int32, String, String) |
Returns physical path to the given file path and library.
Namespace: CMS.MediaLibraryAssembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 12.0.0
Syntax public static string GetMediaFilePath(
string filePath,
int fileLibraryId,
string siteName = null,
string webFullPath = null
)
Parameters
- filePath
- Type: SystemString
Media file path - fileLibraryId
- Type: SystemInt32
Library ID of the media file - siteName (Optional)
- Type: SystemString
Site name - webFullPath (Optional)
- Type: SystemString
Physical path to the root of the web project (e.g. c:\WebProject\), if it is not specified web application physical path is used
Return Value
Type:
StringSee Also