mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix: improve download filename handling in S3 storage and asset service
This commit is contained in:
@ -363,9 +363,7 @@ class AppAssetService:
|
||||
) -> str:
|
||||
with Session(db.engine) as session:
|
||||
assets = AppAssetService.get_or_create_assets(session, app_model, account_id)
|
||||
tree = assets.asset_tree
|
||||
|
||||
node = tree.get(node_id)
|
||||
node = assets.asset_tree.get(node_id)
|
||||
if not node or node.node_type != AssetNodeType.FILE:
|
||||
raise AppAssetNodeNotFoundError(f"File node {node_id} not found")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user