Synapse File Preview

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

Type

Supported Extensions / Content Types

Renderer or Notes

Videos

.mp4, .m4a, .m4p, .m4b, .m4r, .m4v, .ogv, .ogg, .webm

Browser-native

Images

image/bmp, image/jpeg, image/png, image/gif, image/svg+xml, etc.

Browser-native

PDFs

application/pdf

Rendered with pdf.js

HTML

Based on content type

Sanitized HTML unless uploaded by a trusted team member

Markdown

.md, .rmd

Rendered as formatted text

IPython Notebooks

.ipynb

Rendered with nbconvert

Tiff Images

.tiff, .tif

Rendered with UTIF.js

ZIP Archives

.zip

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