Fix: Ajuste tamaño de imagen y peso.

This commit is contained in:
2026-02-24 19:17:21 -03:00
parent 18a142e070
commit 47d47d42fb
2 changed files with 10 additions and 6 deletions

View File

@@ -42,10 +42,10 @@ public class ImageStorageService : IImageStorageService
throw new Exception("Formato de archivo no permitido. Solo JPG, PNG y WEBP.");
}
// 2. Validación de Tamaño (Max 3MB)
if (file.Length > 3 * 1024 * 1024)
// 2. Validación de Tamaño (Max 10MB)
if (file.Length > 10 * 1024 * 1024)
{
throw new Exception("El archivo excede los 3MB permitidos.");
throw new Exception("El archivo excede los 10MB permitidos.");
}
// 3. Validación de Magic Numbers (Leer cabecera real)