# Add configuration option to serve local PDF uploads inline

**URL:** <https://meta.discourse.org/t/add-configuration-option-to-serve-local-pdf-uploads-inline/257040>\
**Category:** Feature\
**Tags:** completed, pdf-previews\
**Created:** [March 4, 2023, 8:56am UTC](https://meta.discourse.org/t/add-configuration-option-to-serve-local-pdf-uploads-inline/257040 "2023-03-04T08:56:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)\
**Post date:** [March 4, 2023, 8:56am UTC](https://meta.discourse.org/t/add-configuration-option-to-serve-local-pdf-uploads-inline/257040/1 "2023-03-04T08:56:41Z")

</div>

Our incoming communication (via email) is heavily dependent on PDFs.

Current behaviour of discourse is to serve this files as download only.

- [Inline PDF Previews](https://meta.discourse.org/t/inline-pdf-previews/157649) isn’t working (due to missing `content-disposition: inline`)
- [Instead of downloading PDF, how to force PDF to open/view in browser only?](https://meta.discourse.org/t/instead-of-downloading-pdf-how-to-force-pdf-to-open-view-in-browser-only/167435)

What risks do you see adding a configuration option, which set `content-disposition: inline` for PDFs or maybe also other file formats?

---

_[View the full topic](https://meta.discourse.org/t/add-configuration-option-to-serve-local-pdf-uploads-inline/257040)._
