From 7f35bc9d0264478691ad514a6e4b6766074a6eb8 Mon Sep 17 00:00:00 2001 From: Felix Morales Date: Tue, 30 Jul 2024 16:08:27 -0500 Subject: [PATCH] Upgraded the upload maximum file size up to 200MB --- Controllers/FileManagerController.cs | 2 ++ web.config | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Controllers/FileManagerController.cs b/Controllers/FileManagerController.cs index 7d9a0fb..04ac7d4 100644 --- a/Controllers/FileManagerController.cs +++ b/Controllers/FileManagerController.cs @@ -65,6 +65,8 @@ namespace CORRESPONSALBackend.Controllers } [Route("AppendFileByProcess")] + [RequestSizeLimit(209715200)] + [RequestFormLimits(MultipartBodyLengthLimit = 209715200)] [HttpPost] public async Task AppendFileByProcess(IFormFile file, int IdUsuario, int Proceso, string Tags, int crud) { diff --git a/web.config b/web.config index d0b4c1f..735ffc8 100644 --- a/web.config +++ b/web.config @@ -12,7 +12,7 @@ - +