diff --git a/api/core/app/app_config/features/file_upload/manager.py b/api/core/app/app_config/features/file_upload/manager.py index 12037f85708e7..42beec2535483 100644 --- a/api/core/app/app_config/features/file_upload/manager.py +++ b/api/core/app/app_config/features/file_upload/manager.py @@ -17,10 +17,13 @@ def convert(cls, config: Mapping[str, Any], is_vision: bool = True): file_upload_dict = config.get("file_upload") if file_upload_dict: if file_upload_dict.get("enabled"): + transform_methods = file_upload_dict.get("allowed_file_upload_methods") or file_upload_dict.get( + "allowed_upload_methods", [] + ) data = { "image_config": { "number_limits": file_upload_dict["number_limits"], - "transfer_methods": file_upload_dict["allowed_upload_methods"], + "transfer_methods": transform_methods, } }