mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-18 05:15:06 +00:00
Harden media uploads and message attachments
Enforce upload limits and safer media metadata, validate attachment ownership and encrypted-message references, and make message attachment binding idempotent. Add gallery media round-trip coverage and a regression test for closing older sessions.
This commit is contained in:
@@ -11,7 +11,7 @@ public class MediaUploadRequest
|
||||
public IFormFile FromFile { get; set; }
|
||||
[Required]
|
||||
public MediaType Type { get; set; }
|
||||
[Required, MaxLength(255)]
|
||||
[Required, MaxLength(128)]
|
||||
public string MimeType { get; set; } = string.Empty;
|
||||
public string? EncryptedKey { get; set; } = string.Empty;
|
||||
[Required]
|
||||
|
||||
Reference in New Issue
Block a user