File Viewer
Bantam includes built-in viewers that let recipients view content directly in their browser without downloads.
Supported File Types
Section titled “Supported File Types”Images
Section titled “Images”View images with zoom and pan controls:
- JPEG/JPG, PNG, GIF, WebP, SVG
- Pinch-to-zoom on mobile
- Mouse wheel zoom on desktop
- Drag to pan when zoomed
- Double-click/tap to reset
- Fullscreen mode
Full-featured PDF viewing:
- Page navigation with prev/next buttons
- Zoom in/out controls
- Page input for direct navigation
- Rotate pages
- Fullscreen mode
- Mobile-optimized touch controls
Videos
Section titled “Videos”HTML5 video player:
- MP4, WebM, MOV
- Standard playback controls
- Fullscreen support
- Mobile-friendly interface
Clean audio player:
- MP3, WAV, OGG
- Playback controls
- Download option
- Mobile-optimized
Code & Text
Section titled “Code & Text”Syntax-highlighted code viewing:
- JavaScript, TypeScript, Python, HTML, CSS, JSON
- Line numbers and formatting
- Raw file access
- Mobile-friendly scrolling
Markdown
Section titled “Markdown”Rendered markdown display:
- Formatted headings and lists
- Code blocks with syntax highlighting
- Links and images
- Toggle between rendered and source view
Documents
Section titled “Documents”Basic document preview:
- Excel (.xlsx) - Spreadsheet preview with sheet selector
- CSV - Table view with data formatting
- Word (.docx) - Basic text content preview
Viewer Interface
Section titled “Viewer Interface”Common Controls
Section titled “Common Controls”Every file viewer includes:
- Download button - Get the original file
- Raw view button - View source/raw content
- Fullscreen toggle - Maximize viewing area
- Copy URL button - Share direct link
Mobile Optimization
Section titled “Mobile Optimization”All viewers are touch-optimized:
- Responsive layouts that adapt to screen size
- Touch gestures for zoom and pan
- Large touch targets for controls
- Smooth scrolling and animations
File Information
Section titled “File Information”View metadata for each file:
- File name and type
- File size
- Last modified date
- Direct download and raw view links
Unsupported Files
Section titled “Unsupported Files”For files without preview support:
- Shows file icon and metadata
- Provides download button
- Displays file type information
- Clean, consistent interface