Share via


RetailRichMediaHelper::convertAbsoluteFilePathToRelativeUrl Method [AX 2012]

Convert absolute file path to relative URL.

Syntax

client server public static str convertAbsoluteFilePathToRelativeUrl(str _absoluteFilePath, str _baseDirectory)

Run On

Called

Parameters

  • _absoluteFilePath
    Type: str
    The absolute file path.
  • _baseDirectory
    Type: str
    The base directory.

Return Value

Type: str
The relative URL if the absolute file path is under the given base directory, otherwise empty.

See Also

Reference

RetailRichMediaHelper Class