Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Chore: remove unreachable code (#21986)

Yongtao Huangde54f8d0efe9
diff --git a/api/controllers/files/upload.py b/api/controllers/files/upload.py
index f1a15793c7f..15f93d2774a 100644
--- a/api/controllers/files/upload.py
+++ b/api/controllers/files/upload.py
@@ -87,7 +87,5 @@ class PluginUploadFileApi(Resource):
except services.errors.file.UnsupportedFileTypeError:
raise UnsupportedFileTypeError()
- return tool_file, 201
-
api.add_resource(PluginUploadFileApi, "/files/upload/for-plugin")