Click or drag to resize
MediaFileInfoProviderGetMediaFilePath Method (String, Int32, String, String)
Returns physical path to the given file path and library.

Namespace: CMS.MediaLibrary
Assembly: CMS.MediaLibrary (in CMS.MediaLibrary.dll) Version: 8.2.23
Syntax
C#
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: String
See Also