diff --git a/TASVideos/Pages/UserFiles/Models/UserFileEditModel.cs b/TASVideos/Pages/UserFiles/Models/UserFileEditModel.cs index d77021eb1..b0fce4a60 100644 --- a/TASVideos/Pages/UserFiles/Models/UserFileEditModel.cs +++ b/TASVideos/Pages/UserFiles/Models/UserFileEditModel.cs @@ -6,6 +6,7 @@ namespace TASVideos.Pages.UserFiles.Models; public class UserFileEditModel { [Required] + [StringLength(255)] public string Title { get; set; } = ""; [Required] diff --git a/TASVideos/Pages/UserFiles/Models/UserFileUploadModel.cs b/TASVideos/Pages/UserFiles/Models/UserFileUploadModel.cs index f3e39d6f2..f66f3b6c9 100644 --- a/TASVideos/Pages/UserFiles/Models/UserFileUploadModel.cs +++ b/TASVideos/Pages/UserFiles/Models/UserFileUploadModel.cs @@ -9,6 +9,7 @@ public class UserFileUploadModel public IFormFile? File { get; set; } [Required] + [StringLength(255)] public string Title { get; set; } = ""; [Required]