Table of Contents

Class InputMedia.BaseMediaFile

Namespace
InSite.Common.Web.UI
Assembly
InSite.UI.dll
protected abstract class InputMedia.BaseMediaFile : InputMedia.IMediaFile
Inheritance
InputMedia.BaseMediaFile
Implements
Derived
Inherited Members

Constructors

BaseMediaFile(InputMedia)

public BaseMediaFile(InputMedia control)

Parameters

control InputMedia

Properties

IsValid

public bool IsValid { get; }

Property Value

bool

Name

public abstract string Name { get; }

Property Value

string

Size

public abstract int Size { get; }

Property Value

int

ValidationError

public string ValidationError { get; set; }

Property Value

string

Methods

Delete()

public void Delete()

DeleteInternal()

public abstract void DeleteInternal()

Open(Action<Stream>)

public abstract void Open(Action<Stream> action)

Parameters

action Action<Stream>

Save(Guid, FileObjectType, string, bool)

public FileStorageModel Save(Guid objectIdentifier, FileObjectType objectType, string fileName = null, bool checkFileValid = true)

Parameters

objectIdentifier Guid
objectType FileObjectType
fileName string
checkFileValid bool

Returns

FileStorageModel

SaveInternal(Guid, FileObjectType, string)

protected abstract FileStorageModel SaveInternal(Guid objId, FileObjectType objType, string fileName)

Parameters

objId Guid
objType FileObjectType
fileName string

Returns

FileStorageModel