Add FORBIDDEN file type to FileAttachmentType for improved validation

This commit is contained in:
Thorsten Sommer 2025-12-28 15:53:29 +01:00
parent c480444559
commit f354382802
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -9,14 +9,19 @@ public enum FileAttachmentType
/// Document file types, such as .pdf, .docx, .txt, etc. /// Document file types, such as .pdf, .docx, .txt, etc.
/// </summary> /// </summary>
DOCUMENT, DOCUMENT,
/// <summary> /// <summary>
/// All image file types, such as .jpg, .png, .gif, etc. /// All image file types, such as .jpg, .png, .gif, etc.
/// </summary> /// </summary>
IMAGE, IMAGE,
/// <summary> /// <summary>
/// All audio file types, such as .mp3, .wav, .aac, etc. /// All audio file types, such as .mp3, .wav, .aac, etc.
/// </summary> /// </summary>
AUDIO, AUDIO,
/// <summary>
/// Forbidden file types that should not be attached, such as executables.
/// </summary>
FORBIDDEN,
} }