Add PresignInlineURL(ctx, key, contentType) method that generates presigned URLs with Content-Disposition: inline and optional Content-Type override
Browsers will render content (e.g. PDFs) directly in iframes instead of triggering download dialogs
Existing PresignURL remains unchanged
Context
The document-service uses presigned S3 URLs to display PDFs in iframes. Without Content-Disposition: inline, the browser triggers a download dialog instead of rendering the PDF.
## Summary
- Add `PresignInlineURL(ctx, key, contentType)` method that generates presigned URLs with `Content-Disposition: inline` and optional `Content-Type` override
- Browsers will render content (e.g. PDFs) directly in iframes instead of triggering download dialogs
- Existing `PresignURL` remains unchanged
## Context
The document-service uses presigned S3 URLs to display PDFs in iframes. Without `Content-Disposition: inline`, the browser triggers a download dialog instead of rendering the PDF.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Generates presigned URLs with Content-Disposition: inline and optional
Content-Type override, so browsers render content (e.g. PDFs) directly
instead of triggering a download dialog.
argoyle
scheduled this pull request to auto merge when all checks succeed 2026-04-16 08:46:15 +00:00
argoyle
merged commit 862ec3f7bc into main2026-04-16 08:52:40 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
PresignInlineURL(ctx, key, contentType)method that generates presigned URLs withContent-Disposition: inlineand optionalContent-TypeoverridePresignURLremains unchangedContext
The document-service uses presigned S3 URLs to display PDFs in iframes. Without
Content-Disposition: inline, the browser triggers a download dialog instead of rendering the PDF.🤖 Generated with Claude Code