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.
Inline-PDFs funktionieren bei mir auch auf dem Desktop nicht.
Ich bin teilweise erfolgreich beim Anzeigen von PDFs inline, wenn ich sie zu FileHelper.inline_images hinzufüge
Aber dann wird ein Parameter „inline=1“ benötigt:
Dies könnte in einer Theme-Komponente hinzugefügt werden (Inline PDF Previews).
Ich würde gerne einen sauberen Weg lernen, Discourse so umzuschalten, dass PDFs mit content-disposition: inline über ein Plugin oder eine Konfigurationsoption bereitgestellt werden.