Fix: Ajuste tamaño de imagen y peso.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user