GridFS File Manager
The GridFS Management activity provides comprehensive tools for managing files stored in MongoDB GridFS. Upload, download, preview, and manage large files with advanced filtering capabilities, metadata editing, and seamless integration with your MongoDB collections.
Get started with GridFS file management in VisualLeaf:
The file browser provides an intuitive interface for navigating and managing files stored in MongoDB GridFS. View files in a sortable table with comprehensive metadata display.
| Column | Description | Sortable |
|---|---|---|
Filename |
Name of the file with icon indicating file type | Yes |
Size |
File size in human-readable format (KB, MB, GB) | Yes |
Upload Date |
Timestamp when file was uploaded to GridFS | Yes |
Content Type |
MIME type of the file (e.g., image/png, application/pdf) | Yes |
Chunk Size |
Size of each chunk (default 255KB) | No |
Upload files to GridFS with automatic chunking, metadata assignment, and progress tracking. Supports single and batch file uploads.
| Field | Description | Required |
|---|---|---|
Filename |
Name to save file as in GridFS (defaults to original filename) | Yes |
Content Type |
MIME type of the file (auto-detected or manually specified) | No |
Chunk Size |
Size of each chunk in bytes (default 261120 / 255KB) | No |
Custom Metadata |
Additional metadata fields as JSON object | No |
Download files from GridFS storage while preserving original metadata and file properties. Supports single and batch downloads.
Single File Download
Click download button or use context menu to download individual files. File chunks are automatically reassembled and downloaded with original filename.
Batch Download
Select multiple files and download them as a ZIP archive. Files are organized and compressed for efficient download.
Copy File Link
Generate and copy shareable links to files (if exposed via web server). Useful for referencing files in applications.
Streaming Download
Large files are downloaded using streaming to prevent memory issues. Progress indicator shows download status.
Preview supported file types directly in VisualLeaf without downloading. Includes image viewer, text editor, PDF viewer, and media player.
Images
Preview images with zoom, pan, and rotation controls:
PDF Documents
View PDF files with full navigation and search:
Text Files
Read and edit text-based files:
Media Files
Play audio and video files:
View and edit file metadata including system fields and custom metadata. Supports JSON-based metadata for flexible data storage.
These fields are managed by GridFS and are read-only:
Editable fields for application-specific metadata:
Edit Metadata
Click metadata icon or use context menu to open metadata editor. Modify custom fields using JSON tree editor with validation.
Add Custom Fields
Add new custom metadata fields to metadata object. Supports nested objects, arrays, and all BSON data types.
Copy Metadata
Copy metadata from one file and apply to others. Useful for batch metadata updates or template application.
Export Metadata
Export file metadata to JSON for documentation or backup. Import metadata from JSON files to restore or migrate.
Export files and metadata from GridFS or import files into GridFS collections with various format options.
ZIP Archive
Export selected files as ZIP archive with original filenames. Includes metadata.json file with file metadata.
Folder Structure
Export files preserving folder hierarchy based on metadata categories. Files organized in subdirectories.
BSON Dump
Export GridFS collections (fs.files and fs.chunks) as BSON for MongoDB backup or migration using mongodump format.
JSON Manifest
Export metadata only as JSON manifest file listing all files with metadata. Useful for inventory and documentation.
Find files quickly using advanced search and filtering capabilities with support for metadata queries.
Quick filter buttons for common searches:
| Shortcut | Action |
|---|---|
| Ctrl + U | Open upload dialog |
| Ctrl + F | Focus search box |
| Ctrl + A | Select all files in current view |
| Delete | Delete selected files (with confirmation) |
| Space | Preview selected file |
| F5 | Refresh file list |
Note: On macOS, use Cmd instead of Ctrl
Media Asset Management
Store and manage images, videos, and audio files for web applications and content management systems. Preview media, edit metadata, and organize by custom categories.
Document Storage
Manage large documents, PDFs, and file attachments that exceed MongoDB's 16MB document size limit. Full-text search and version tracking via metadata.
Backup & Archive
Store database backups, log files, and archived data with metadata for easy retrieval. Export entire collections for disaster recovery.
Application Assets
Store application binaries, configuration files, and deployment artifacts. Version control through metadata and organize by release tags.
Download and start managing your MongoDB databases with ease.
Download Free Trial