Table of Contents

Interface IMediaFileUrl

Namespace
Kentico.Content.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Encapsulates media file URL representation.

[Obsolete("Media libraries and their APIs are obsolete and will be discontinued in the future. Please migrate all media library files to Content hub and use their corresponding content item APIs.", false)]
public interface IMediaFileUrl : IFileUrl
Inherited Members
Extension Methods

Properties

DirectPath

Direct path of the media file.

string DirectPath { get; }

Property Value

string

Remarks

Generates various path types depending on the media library location:

PathLocation
~/mediaLibraryFolder/filename.extensionMedia file is located in a local media library on the current site.
http://domain.com/mediaLibraryFolder/filename.extensionMedia file is located in a local media library on a different site.
http://CDN/mediaLibraryFolder/filename.extensionMedia file is located in a media library stored in CDN.
~/getmedia/fileGUID/fileName.extensionMedia file is located in a media library which is located outside of the CMS application on the current site.
http://domain.com/getmedia/fileGUID/fileName.extensionMedia file is located in a media library which is located outside of the CMS application on a different site.

RelativePath

Relative path of the media file.

string RelativePath { get; }

Property Value

string

Remarks

Generates various path types depending on the media library location:

PathLocation
~/getmedia/fileGUID/fileName.extensionMedia file is located in a media library on the current site.
http://domain.com/getmedia/fileGUID/fileName.extensionMedia file is located in a media library on a different site.