Browse Source

fix: When chatflow's file uploads changed from not being supported to… (#14341)

Co-authored-by: 刘江波 <jiangbo721@163.com>
tags/1.0.1
jiangbo721 8 months ago
parent
commit
829cd70889
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/models/workflow.py

+ 1
- 1
api/models/workflow.py View File

@@ -180,7 +180,7 @@ class Workflow(Base):
features["file_upload"]["enabled"] = image_enabled
features["file_upload"]["number_limits"] = image_number_limits
features["file_upload"]["allowed_file_upload_methods"] = image_transfer_methods
features["file_upload"]["allowed_file_types"] = ["image"]
features["file_upload"]["allowed_file_types"] = features["file_upload"].get("allowed_file_types", ["image"])
features["file_upload"]["allowed_file_extensions"] = []
del features["file_upload"]["image"]
self._features = json.dumps(features)

Loading…
Cancel
Save