fix
This commit is contained in:
@@ -1273,11 +1273,13 @@ pub async fn download_with_token(
|
|||||||
|
|
||||||
let storage = state.storage_for_tenant(claims.tenant_id)?;
|
let storage = state.storage_for_tenant(claims.tenant_id)?;
|
||||||
|
|
||||||
|
let disposition = inline_content_disposition(&doc.filename);
|
||||||
|
|
||||||
let presigned_url = storage
|
let presigned_url = storage
|
||||||
.presign_get_object(
|
.presign_get_object(
|
||||||
&version.s3_key,
|
&version.s3_key,
|
||||||
Duration::from_secs(PRESIGNED_URL_EXPIRY_SECONDS),
|
Duration::from_secs(PRESIGNED_URL_EXPIRY_SECONDS),
|
||||||
None,
|
disposition.as_deref(),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.storage_context("failed to generate download URL")?;
|
.storage_context("failed to generate download URL")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user