This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
OpenSource
/
dify
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
152
Wiki
Activity
Browse Source
fix: allow fallback to remote_url when url is not provided (
#12455
)
tags/1.0.0-beta.1
Hiroshi Fujita
9 months ago
parent
67228c9b26
commit
4295cefeb1
No account linked to committer's email address
1 changed files
with
1 additions
and
1 deletions
Split View
Show Diff Stats
1
1
api/factories/file_factory.py
+ 1
- 1
api/factories/file_factory.py
View File
@@ -158,7 +158,7 @@ def _build_from_remote_url(
tenant_id: str,
transfer_method: FileTransferMethod,
) -> File:
url = mapping.get("url")
url = mapping.get("url")
or mapping.get("remote_url")
if not url:
raise ValueError("Invalid file url")
Write
Preview
Loading…
Cancel
Save