Interface IMediaFileUrl
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:
Path | Location |
---|---|
~/mediaLibraryFolder/filename.extension | Media file is located in a local media library on the current site. |
http://domain.com/mediaLibraryFolder/filename.extension | Media file is located in a local media library on a different site. |
http://CDN/mediaLibraryFolder/filename.extension | Media file is located in a media library stored in CDN. |
~/getmedia/fileGUID/fileName.extension | Media 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.extension | Media 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:
Path | Location |
---|---|
~/getmedia/fileGUID/fileName.extension | Media file is located in a media library on the current site. |
http://domain.com/getmedia/fileGUID/fileName.extension | Media file is located in a media library on a different site. |