Class PostImage
Image upload DB entry in the context of a Post.
[Table("PostImages")]
public class PostImage
- Inheritance
-
PostImage
- Inherited Members
Properties
BlurHash
Blur Hash placeholder (https://blurha.sh/)
public string? BlurHash { get; set; }
Property Value
ContentType
Content type of the Image uploaded
public required string ContentType { get; set; }
Property Value
CreationTimestampUTC
Unix-timestamp of when this image was uploaded.
public required long CreationTimestampUTC { get; set; }
Property Value
FileName
File name.
public required string FileName { get; set; }
Property Value
FileSizeBytes
File size in bytes.
public required long FileSizeBytes { get; set; }
Property Value
Guid
File Guid.
[Key]
public Guid Guid { get; set; }
Property Value
Notes
Optional notes that describe the image. Only visible by author.
public string? Notes { get; set; }
Property Value
Post
[ForeignKey("PostId")]
public Post? Post { get; set; }
Property Value
PostId
public long PostId { get; set; }
Property Value
SHA256
SHA-256 checksum of the file's bytes.
[MaxLength(64)]
[JsonPropertyName("SHA256")]
public required string SHA256 { get; set; }