Class CombinedGuidsMediaPathScheme
Implements a combined-guids media path scheme.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.IO.MediaPathSchemes
Assembly: Umbraco.Core.dll
Syntax
public class CombinedGuidsMediaPathScheme : IMediaPathScheme
Remarks
Path is "{combinedGuid}/{filename}" where combinedGuid is a combination of itemGuid and propertyGuid.
Methods
View SourceGetDeleteDirectory(MediaFileManager, String)
Gets the directory that can be deleted when the file is deleted.
Declaration
public string GetDeleteDirectory(MediaFileManager fileSystem, string filepath)
Parameters
Type | Name | Description |
---|---|---|
MediaFileManager | fileSystem | The media filesystem. |
System.String | filepath | The filesystem-relative path of the file. |
Returns
Type | Description |
---|---|
System.String | The filesystem-relative path of the directory. |
Remarks
The directory, and anything below it, will be deleted.
Can return null (or empty) when no directory should be deleted.
GetFilePath(MediaFileManager, Guid, Guid, String)
Gets a media file path.
Declaration
public string GetFilePath(MediaFileManager fileManager, Guid itemGuid, Guid propertyGuid, string filename)
Parameters
Type | Name | Description |
---|---|---|
MediaFileManager | fileManager | The media filesystem. |
Guid | itemGuid | The (content, media) item unique identifier. |
Guid | propertyGuid | The property type unique identifier. |
System.String | filename | The file name. |
Returns
Type | Description |
---|---|
System.String | The filesystem-relative complete file path. |