# OneBox common document formats

**URL:** https://meta.discourse.org/t/onebox-common-document-formats/70210
**Category:** Feature
**Created:** [September 17, 2017, 8:11am UTC](https://meta.discourse.org/t/onebox-common-document-formats/70210 "2017-09-17T08:11:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [September 17, 2017, 8:11am UTC](https://meta.discourse.org/t/onebox-common-document-formats/70210/1 "2017-09-17T08:11:05Z")

</div>

When users upload attachments to posts which are not images (for example, common document formats such as PowerPoint, Excel, Word, PDF or equivalents), when these resource URL’s are called up, is it possible to OneBox them as well?

For example, Word/PowerPoint/Excel documents have Titles, Summaries, Authors etc. set which may work nicely on a OneBox digest format. All that is required is to detect the format of the upload (based on extension is probably enough) and then extract pieces of useful info from the files to display in OneBox.

For example, PowerPoint and PDF documents may even show a thumbnail of the first page.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [September 17, 2017, 8:34am UTC](https://meta.discourse.org/t/onebox-common-document-formats/70210/2 "2017-09-17T08:34:17Z")

</div>

This is a duplicate of an older feature request:

> [@Oneboxing of PDFs and other attachments](https://meta.discourse.org/t/oneboxing-of-pdfs-and-other-attachments/55972):
>
> Continuing the discussion from [Custom visualization for specific attachment types](https://meta.discourse.org/t/custom-visualization-for-specific-attachment-types/14941/16): Putting this out there as a feature request. I’d love to see the ability to onebox PDFs and other attachments along the lines of google docs oneboxing. Or perhaps even simply a file attachment appearance like you’d get using the file upload, ideally also with the file type and size provided. Right now putting a PDF URL on its own line presents as a raw URL. Very 1990s. As my millenial colleague told me recently,…

It’s already implemented for PDF files, adding this feature for other file types would require shipping additional parsers for these files with Discourse.

---

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [September 17, 2017, 8:41am UTC](https://meta.discourse.org/t/onebox-common-document-formats/70210/3 "2017-09-17T08:41:47Z")

</div>

@fefrei you’re right. 👍

I searched for a while with `OneBox` and other strings, but didn’t come up with that topic. `OneBox PDF` found it nicely.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [September 18, 2017, 2:41am UTC](https://meta.discourse.org/t/onebox-common-document-formats/70210/4 "2017-09-18T02:41:18Z")

</div>


