feat: tipos UploadedFile, StorageConfig, S3Config en infra (issue 0014 fase 1)
This commit is contained in:
@@ -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"])
|
||||
}
|
||||
Reference in New Issue
Block a user