From 1cddc3c373ee8e4d0a6c98990dd5f844dc154d57 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 2 Nov 2025 14:20:11 +0100 Subject: [PATCH] fix --- backend/src/routes/documents.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/routes/documents.rs b/backend/src/routes/documents.rs index d23bd3d..5b0ac54 100644 --- a/backend/src/routes/documents.rs +++ b/backend/src/routes/documents.rs @@ -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")?;