diff --git a/.env.example b/.env.example index 1c38371..51fa1d6 100644 --- a/.env.example +++ b/.env.example @@ -89,4 +89,6 @@ EMAIL_AUTO_CLASSIFY=false EMAIL_AI_CONFIDENCE_THRESHOLD=0.7 EMAIL_MAX_FETCH_PER_RUN=50 EMAIL_PROCESS_INTERVAL_MINUTES=5 -EMAIL_WORKFLOWS_ENABLED=true \ No newline at end of file +EMAIL_WORKFLOWS_ENABLED=true +EMAIL_MAX_UPLOAD_SIZE_MB=50 +ALLOWED_EXTENSIONS=.pdf,.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.zip \ No newline at end of file diff --git a/app/core/config.py b/app/core/config.py index dff8cbc..2f20094 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -70,6 +70,7 @@ class Settings(BaseSettings): EMAIL_PROCESS_INTERVAL_MINUTES: int = 5 EMAIL_WORKFLOWS_ENABLED: bool = True EMAIL_MAX_UPLOAD_SIZE_MB: int = 50 # Max file size for email uploads + ALLOWED_EXTENSIONS: List[str] = [".pdf", ".jpg", ".jpeg", ".png", ".gif", ".doc", ".docx", ".xls", ".xlsx", ".zip"] # Allowed file extensions for uploads # vTiger Cloud Integration VTIGER_ENABLED: bool = False