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.
It’s already implemented for PDF files, adding this feature for other file types would require shipping additional parsers for these files with Discourse.