Whenever I upload a PDF, it shows in the topic as follows:
I’m using Inline PDF to display it in Desktop version. But, in mobile Inline PDF won’t work. Further, Google or other search engines autodetect the PDF files, but whenever the user clicks on those results, the PDF download dialogue will appear instead of opening in a tab. This is a bit unfriendly and most of the users prefer to view the PDF online instead of downloading it at a place and opening.
PDF inline não funciona para mim no desktop também.
Estou parcialmente bem-sucedido em exibir PDFs inline ao adicioná-los a FileHelper.inline_images
Mas então um parâmetro “inline=1” é necessário:
Isso poderia ser adicionado em algum componente de tema (Inline PDF Previews).
Eu gostaria de aprender uma maneira limpa de fazer o discourse servir PDFs com content-disposition: inline usando um plugin ou uma opção de configuração.