# Thumbnails for Document Attachments

**URL:** https://meta.discourse.org/t/thumbnails-for-document-attachments/157613
**Category:** Support
**Created:** [July 13, 2020, 5:01pm UTC](https://meta.discourse.org/t/thumbnails-for-document-attachments/157613 "2020-07-13T17:01:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tyson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tyson/32/86155_2.png) [@Tyson](https://meta.discourse.org/u/Tyson)
#### Post date: [July 13, 2020, 5:01pm UTC](https://meta.discourse.org/t/thumbnails-for-document-attachments/157613/1 "2020-07-13T17:01:58Z")

</div>

I need to post some Word document attachments (.doc, .docx) and would like to have thumbnail images for the files. Is this possible with any built-in feature or plugin?

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [July 13, 2020, 5:37pm UTC](https://meta.discourse.org/t/thumbnails-for-document-attachments/157613/2 "2020-07-13T17:37:19Z")

</div>

See here:

> [@PDF onebox instead of download, on uploaded files](https://meta.discourse.org/t/pdf-preview-instead-of-download-on-uploaded-files/151995/2):
>
> Oneboxing applies to external PDF links, not direct uploads. For example, an external link: versus the same doc, but uploaded: [fw4.pdf](https://meta.discourse.org/uploads/short-url/oUq8WymzldEnRbxHJGmnK6YeGlj.pdf) (173.5 KB)

and here:

> [@Format rendering of links to (local) pdf files?](https://meta.discourse.org/t/format-rendering-of-links-to-local-pdf-files/135639/2):
>
> As far as I know oneboxing will only work on externally linked PDFs, not uploaded ones. With CSS you could do something like a.attachment[href$=".pdf"] { color: red; &:before { // The attachment icon is added using a pseudo-selector // so you'd need to edit its styles here } } This applies styles to links with the class attachment only if the href ends in .pdf

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [July 14, 2020, 8:25am UTC](https://meta.discourse.org/t/thumbnails-for-document-attachments/157613/3 "2020-07-14T08:25:02Z")

</div>

Hello @Tyson, my colleague just published a theme component I think you’d find useful:

[Inline PDF Previews](https://meta.discourse.org/t/inline-pdf-previews/157649)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 13, 2020, 8:25am UTC](https://meta.discourse.org/t/thumbnails-for-document-attachments/157613/4 "2020-08-13T08:25:06Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
