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.

fix: trim whitespace from URL input in file uploader component #16700 (#16722)

GuanMu0811a23cd4ad
diff --git a/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx b/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx
index 294044f7640..4f11923fea1 100644
--- a/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx
+++ b/web/app/components/base/file-uploader/file-from-link-or-local/index.tsx
@@ -74,7 +74,7 @@ const FileFromLinkOrLocal = ({
value={url}
onChange={(e) => {
setShowError(false)
- setUrl(e.target.value)
+ setUrl(e.target.value.trim())
}}
disabled={disabled}
/>