Class FileModel
- Namespace
- InSite.Persistence
- Assembly
- InSite.Persistence.dll
public class FileModel : IFile
- Inheritance
-
FileModel
- Implements
-
- Inherited Members
-
Constructors
FileModel(IFileStorageItem)
public FileModel(IFileStorageItem storage)
Parameters
storage IFileStorageItem
Properties
ActionMessages
public List<string> ActionMessages { get; }
Property Value
- List<string>
ContentSize
public int ContentSize { get; }
Property Value
- int
DataFingerprint
public string DataFingerprint { get; }
Property Value
- string
Guid
public Guid Guid { get; }
Property Value
- Guid
IsNew
public bool IsNew { get; }
Property Value
- bool
Name
public string Name { get; set; }
Property Value
- string
OrganizationIdentifier
public Guid OrganizationIdentifier { get; set; }
Property Value
- Guid
Path
public string Path { get; set; }
Property Value
- string
Type
public string Type { get; set; }
Property Value
- string
Uploaded
public DateTimeOffset Uploaded { get; }
Property Value
- DateTimeOffset
Uploader
public Guid? Uploader { get; }
Property Value
- Guid?
UserIdentifier
public Guid? UserIdentifier { get; set; }
Property Value
- Guid?
Methods
Delete()
GetExtension(string)
public static string GetExtension(string path)
Parameters
path string
Returns
- string
GetLocation(string)
public static string GetLocation(string path)
Parameters
path string
Returns
- string
GetName(string)
public static string GetName(string path)
Parameters
path string
Returns
- string
GetNameWithoutExtension(string)
public static string GetNameWithoutExtension(string path)
Parameters
path string
Returns
- string
IsPathValid(string)
public static bool IsPathValid(string path)
Parameters
path string
Returns
- bool
Read()
Returns
- Stream
Save()
Write(Action<Stream>)
public void Write(Action<Stream> write)
Parameters
write Action<Stream>
Write(Stream, bool)
public void Write(Stream stream, bool isCheckFileSizeLimits = true)
Parameters
stream Stream
isCheckFileSizeLimits bool