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.
Il PDF inline non funziona nemmeno per me sul desktop.
Ho un successo parziale nel visualizzare i PDF inline quando li aggiungo a FileHelper.inline_images
Ma poi è necessario un parametro “inline=1”:
Questo potrebbe essere aggiunto in qualche componente tematico (Inline PDF Previews).
Mi piacerebbe imparare un modo pulito per far sì che Discourse serva i PDF con content-disposition: inline utilizzando un plugin o un’opzione di configurazione.