Synapse File Preview
http://Synapse.org supports in-browser preview for a variety of file types so that users can quickly view files without needing to download them. Here's information about preview functionality and what file types are supported.
What File Types Are Supported in Synapse Preview?
Synapse leverages different renderers and utilities to display files directly in the browser. The types supported include:
Common Supported File Types
Type | Supported Extensions / Content Types | Renderer or Notes |
---|---|---|
Videos |
| Browser-native |
Images |
| Browser-native |
PDFs |
| Rendered with |
HTML | Based on content type | Sanitized HTML unless uploaded by a trusted team member |
Markdown |
| Rendered as formatted text |
IPython Notebooks |
| Rendered with |
Tiff Images |
| Rendered with |
ZIP Archives |
| Preview generator creates a CSV listing |
< > Code and Script File Support
Synapse supports preview for a broad set of code file types, based on their file extensions:
Languages:
.py
,.r
,.java
,.js
,.cpp
,.c
,.sql
,.sh
,.pl
,.xml
,.yaml
, etc.Workflow Definitions:
.cwl
,.wdl
,.json
Web Content:
.html
(as noted above)
Preview for code files typically displays plain-text formatting with syntax highlighting (when applicable).
Reference Links
FileHandle API (Confluence)
Media Type (Wikipedia)