# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://meta.discourse.org/t/thumbnails-for-document-attachments/157613)._
