This commit is contained in:
2025-11-02 14:20:11 +01:00
parent bd2669af4d
commit 1cddc3c373
+3 -1
View File
@@ -1273,11 +1273,13 @@ pub async fn download_with_token(
let storage = state.storage_for_tenant(claims.tenant_id)?;
let disposition = inline_content_disposition(&doc.filename);
let presigned_url = storage
.presign_get_object(
&version.s3_key,
Duration::from_secs(PRESIGNED_URL_EXPIRY_SECONDS),
None,
disposition.as_deref(),
)
.await
.storage_context("failed to generate download URL")?;