From 7d30831408cedd866f391b67571849eb547fee19 Mon Sep 17 00:00:00 2001 From: "ashutosh.nehete" Date: Mon, 15 Sep 2025 16:24:47 +0530 Subject: [PATCH] Removed the requried from base64 when getting any attachment --- Marco.Pms.Model/Utilities/FileUploadModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marco.Pms.Model/Utilities/FileUploadModel.cs b/Marco.Pms.Model/Utilities/FileUploadModel.cs index 1552e5a..cade722 100644 --- a/Marco.Pms.Model/Utilities/FileUploadModel.cs +++ b/Marco.Pms.Model/Utilities/FileUploadModel.cs @@ -4,7 +4,7 @@ { public Guid? DocumentId { get; set; } public required string FileName { get; set; } // Name of the file (e.g., "image1.png") - public required string Base64Data { get; set; } // Base64-encoded string of the file + public string? Base64Data { get; set; } // Base64-encoded string of the file public required string ContentType { get; set; } // MIME type (e.g., "image/png", "application/pdf") public long FileSize { get; set; } // File size in bytes public string? Description { get; set; } // Optional: Description or purpose of the file