Table of Contents

Class PostImageUploadRequestDto

Namespace
GastroSky.Models.DTO.PostImage
Assembly
GastroSky.Models.dll

Request DTO for uploading a new GastroSky.Models.DTO.PostImage.

public sealed class PostImageUploadRequestDto
Inheritance
PostImageUploadRequestDto
Inherited Members

Properties

File

The image file.

[Required]
public IFormFile File { get; set; }

Property Value

IFormFile

FileName

File name.

[Required]
public string FileName { get; set; }

Property Value

string

FileSizeBytes

File size in bytes.

[Required]
public long FileSizeBytes { get; set; }

Property Value

long

Notes

Optional notes that only the author can see.

public string? Notes { get; set; }

Property Value

string

PostSlug

Post.Slug of the GastroSky.Models.DTO.Post with which to associate this image.

[Required]
public string PostSlug { get; set; }

Property Value

string

SHA256

SHA-256 checksum of the file's bytes.

[Required]
public string SHA256 { get; set; }

Property Value

string