mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
fix: improve download filename handling in S3 storage and asset service
This commit is contained in:
@ -158,7 +158,9 @@ class SandboxFileArchiveSource(SandboxFileSource):
|
||||
except PipelineExecutionError as exc:
|
||||
raise RuntimeError(str(exc)) from exc
|
||||
|
||||
download_url = sandbox_storage.get_download_url(export_key, self._EXPORT_EXPIRES_IN_SECONDS)
|
||||
download_url = sandbox_storage.get_download_url(
|
||||
export_key, self._EXPORT_EXPIRES_IN_SECONDS, download_filename=filename
|
||||
)
|
||||
|
||||
return SandboxFileDownloadTicket(
|
||||
download_url=download_url,
|
||||
|
||||
Reference in New Issue
Block a user