🔧(backend) expose CONVERSION_UPLOAD_ENABLED in config endpoint

The frontend application needs to know the value of the settings
CONVERSION_UPLOAD_ENABLED to allow the file upload or not.
This commit is contained in:
Manuel Raynaud 2026-03-30 11:40:56 +02:00
parent 05423d4f04
commit f4ded8ee55
No known key found for this signature in database
GPG key ID: 3F45EEDEBF44E874
2 changed files with 3 additions and 0 deletions

View file

@ -2676,6 +2676,7 @@ class ConfigView(drf.views.APIView):
"COLLABORATION_WS_NOT_CONNECTED_READY_ONLY",
"CONVERSION_FILE_EXTENSIONS_ALLOWED",
"CONVERSION_FILE_MAX_SIZE",
"CONVERSION_UPLOAD_ENABLED",
"CRISP_WEBSITE_ID",
"ENVIRONMENT",
"FRONTEND_CSS_URL",

View file

@ -26,6 +26,7 @@ pytestmark = pytest.mark.django_db
API_USERS_SEARCH_QUERY_MIN_LENGTH=6,
COLLABORATION_WS_URL="http://testcollab/",
COLLABORATION_WS_NOT_CONNECTED_READY_ONLY=True,
CONVERSION_UPLOAD_ENABLED=False,
CRISP_WEBSITE_ID="123",
FRONTEND_CSS_URL="http://testcss/",
FRONTEND_JS_URL="http://testjs/",
@ -56,6 +57,7 @@ def test_api_config(is_authenticated):
"COLLABORATION_WS_NOT_CONNECTED_READY_ONLY": True,
"CONVERSION_FILE_EXTENSIONS_ALLOWED": [".docx", ".md"],
"CONVERSION_FILE_MAX_SIZE": 20971520,
"CONVERSION_UPLOAD_ENABLED": False,
"CRISP_WEBSITE_ID": "123",
"ENVIRONMENT": "test",
"FRONTEND_CSS_URL": "http://testcss/",