feat: tipos UploadedFile, StorageConfig, S3Config en infra (issue 0014 fase 1)

This commit is contained in:
2026-04-18 17:10:31 +02:00
parent 95826cb14f
commit 3d47e74ec7
6 changed files with 137 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
package infra
// StorageConfig configura el almacenamiento local de archivos subidos.
type StorageConfig struct {
BaseDir string `json:"base_dir"` // directorio base para almacenar archivos
MaxFileSize int64 `json:"max_file_size"` // tamano maximo en bytes (ej: 10<<20 = 10MB)
AllowedTypes []string `json:"allowed_types"` // MIME types permitidos (ej: ["image/png", "image/jpeg", "application/pdf"])
}