Interface IWebFile
A file stored under a WebFileContainer. List responses omit Content (fetch a
single file via GetWebFileAsync to retrieve it).
public interface IWebFile
Properties
Changed
When the file was last saved. Set by the server on every save; also the file's Last-Modified.
DateTimeOffset Changed { get; init; }
Property Value
- DateTimeOffset
ContainerId
The id of the WebFileContainer the file belongs to. Set from the route by
CreateWebFileContainerFileAsync.
string? ContainerId { get; init; }
Property Value
- string
Content
The file's bytes (base64 in JSON). null in list responses.
byte[]? Content { get; init; }
Property Value
- byte[]
ContentType
The media type the CMS serves the file with, such as text/css. Derived from the extension of
Path when a save leaves it empty.
string? ContentType { get; init; }
Property Value
- string
Created
When the file was created.
DateTimeOffset Created { get; init; }
Property Value
- DateTimeOffset
Creator
The user who created the file. When a save leaves it empty, the server keeps the stored file's creator, or uses the authenticated user for a new file.
string? Creator { get; init; }
Property Value
- string
Id
The file's id, a GUID the server assigns when a create leaves it null.
string? Id { get; init; }
Property Value
- string
Modifier
The user who last saved the file. Set to the authenticated user when a save leaves it empty.
string? Modifier { get; init; }
Property Value
- string
Path
The request path the CMS serves the file under, such as /css/site.css - compared exactly with the
path of a request to a website whose host header names this container. Unique within the container.
string? Path { get; init; }
Property Value
- string