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

Co-authored-by: 刘江波 <jiangbo721@163.com>
pull/14262/head
jiangbo721 1 year ago committed by Bharat Ramanathan
parent a485c4d5c6
commit fccf5e470e

@ -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