View Source
A custom file system provider for media
Inheritance
System.Object
Assembly: Umbraco.Core.dll
public class MediaFileSystem : FileSystemWrapper, IMediaFileSystem, IFileSystem
Constructors
View Source
MediaFileSystem(IFileSystem, IContentSection, IMediaPathScheme, ILogger)
Declaration
public MediaFileSystem(IFileSystem innerFileSystem, IContentSection contentConfig, IMediaPathScheme mediaPathScheme, ILogger logger)
Parameters
Methods
View Source
CopyFile(IContentBase, PropertyType, String)
Declaration
public string CopyFile(IContentBase content, PropertyType propertyType, string sourcepath)
Parameters
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public void DeleteMediaFiles(IEnumerable<string> files)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
files |
|
View Source
Declaration
public string GetMediaPath(string filename, Guid cuid, Guid puid)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.Guid |
cuid |
|
System.Guid |
puid |
|
Returns
Type |
Description |
System.String |
|
View Source
Declaration
public string GetMediaPath(string filename, string prevpath, Guid cuid, Guid puid)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.String |
prevpath |
|
System.Guid |
cuid |
|
System.Guid |
puid |
|
Returns
Type |
Description |
System.String |
|
View Source
StoreFile(IContentBase, PropertyType, String, Stream, String)
Declaration
public string StoreFile(IContentBase content, PropertyType propertyType, string filename, Stream filestream, string oldpath)
Parameters
Type |
Name |
Description |
IContentBase |
content |
|
PropertyType |
propertyType |
|
System.String |
filename |
|
System.IO.Stream |
filestream |
|
System.String |
oldpath |
|
Returns
Type |
Description |
System.String |
|