Show FileDocuments in Galery widget

Hey community,   I’m currently trying to enable attachements on my app objects. The attachement class has System.FileDocument as its generalization. Attachements can be documents of all different types. Uploading and viewing them 1 by 1 is no problem with the “FileDocumentViewer”.   The problem is I want to display a small gallery of attachements on a page. Currently it looks like this and only shows its name: I’d like to display a small preview of the document in the square. Sadly “FileDocumentViewer” can’t be used in a Gallery widget. Is there any way to achieve a behavior like I want to for universal document types?
0 answers