See the complete list of volflags for all available options.
Syntax
Volflags are specified in theflags: section of a volume configuration:
Upload Configuration
Deduplication
Enable symlink-based file deduplicationWhen enabled, duplicate uploads create symlinks instead of storing the file again.
Enable hardlink-based deduplication, fallback to symlinks when impossible
Dedup with hardlink only, never symlink. Make full copy if hardlink impossible.
Enable reflink-based deduplication (CoW filesystems), fallback to full copy when impossible
How careful to be when deduplicating:
1= just verify filesize50= verify file contents have not been altered (default)
Reject duplicate files during upload (only matches within same volume)
Also reject dupes when moving a file into another volume
Don’t use existing data on disk for dupes. Reduces HDD reads but increases network load.
Upload Rules
Maximum number of uploads in a time period
Maximum upload bytes in a time periodSuffixes:
b, k, m, g, tTotal volume size limit
Maximum number of files in volume
Allow filesizes within range
Ensure free disk space by rejecting uploads
Upload Behavior
Force randomized filenames, 9 characters long by default
Length of randomized filenames
When to overwrite existing files:
0= never (generate new filename)1= if client file is newer2= always overwrite
How to timestamp uploaded files:
c= client last-modified timeu= upload time (server time)fc= force client timefu= force upload time
Enable filetype detection for nameless uploads
Filename template for nameless uploads
Force all uploads into the top folder of the volume (prevent subdirectories)
Delete unfinished uploads when they timeout (after
--snap-drop period)Upload Rotation
Move uploads into organized folder structures automatically.Organize by number of files per folderExample:
file-1234.jpg → 12/34/file-1234.jpgOrganize by date/time formatExample: Upload at 2026-03-03 14:30 →
2026-03/03-14/file.jpgTimezone for
rotf date formattingExamples: Europe/Oslo, America/Toronto, Asia/TokyoAuto-delete uploads after N secondsClients can specify shorter lifetimes when uploading.
File Permissions
Unix permissions for new files
Unix permissions for new directories
Unix user-id to chown new files/folders to (-1 = don’t change)
Unix group-id to chown new files/folders to (-1 = don’t change)
Allow uploading even if volume is inside a ramdisk
Compression
Allow server-side gzip compression of uploads with
?gz URL parameterAllow server-side lzma compression of uploads with
?xz URL parameterForce server-side compression (optional: specify algorithm and level)
Database Configuration
Indexing
Enable database; makes files searchable and enables upload-undo
Scan writable folders for new files on startup (also sets
e2d)Scan all folders for new files on startup (also sets
e2d)Enable multimedia indexing (audio/video tags)
Scan existing files for tags on startup (also sets
e2t)Delete all metadata from DB for full rescan (also sets
e2ts)Disable metadata collection (overrides
-e2t*)Recommended for security when accepting uploads from untrusted users.
Disable all database features (overrides all
-e2*)Database Location
Location for thumbnails and database
Location for database only (keep thumbnails in volume)
Disable database if specified file doesn’t exist
Database Behavior
Scan for new files every N seconds
Skip hashing files matching regex pattern
Fully ignore files matching regex pattern
Don’t forget files when deleted from disk (keep in database)
Forget uploader IP after N seconds (GDPR compliance)
Never store uploader IP in database (disables unpost feature)
Database speed-durability tradeoff:
acid= safest, slowestswal= safe, fastwal= balanced (default)yolo= fastest, data loss possible
Cross-volume dupe detection/linking
Don’t descend into other filesystems during scanning
Don’t follow symlinks leaving the volume root
Filekeys and Dirkeys
Generate per-file access keys (N characters long)Keys are invalidated if filesize or inode changes.Example URL:
https://example.com/file.jpg?k=Ab3DGenerate slightly weaker per-file keys (not affected by filesize/inode)Better for files that may be modified.
Generate per-directory access keys
Per-directory keys allow browsing into subdirectories
Allow seeing files (not folders) in a directory with
g permission without valid dirkeyThumbnails
Disable all thumbnails
Disable video thumbnails only
Disable audio thumbnails (spectrograms) only
Disable image thumbnails only
Thumbnail resolution (WxH)
Center-cropping behavior:
y, n, fy, fn3x resolution thumbnails:
y, n, fy, fnWebP/JPEG thumbnail quality (10-90)
Convert-to-image timeout in seconds
Convert-to-audio timeout in seconds
Make spectrograms:
0= never1= fallback if no thumbnail available2= always
Use custom thumbnail for file extension
Client and UX
Show grid/thumbnails view by default
Enable selecting files in grid by ctrl-click
Default sort order
Natural-sort of leading digits in filenames (e.g., file2 before file10)
Don’t list files matching regex
Force-download files on click (no inline preview)
Don’t show total folder size (~30% faster listings)
Who can see disk usage info:
no= nobodya= admin permissionrw= read-write accessw= write accessauth= authenticated usersall= everyone
Per-volume favicon URL
Theme color (hint for browsers, discord embeds)
Document Embedding
Files to embed as readmes
Files to embed as preadmes (before file listing)
Files to embed above/before files
Files to embed below/after files
Write-only users can upload prologues/epilogues without getting renamed
Security
Return HTML and markdown as text/plain (prevents XSS)
Allow indexing by search engines (default)
Ask search engines not to index this volume
Show dotfiles in search results (if user can see dotfiles)
Allow all users with read-access to enable showing dotfiles in listings
Other Features
Enable RSS feeds (add
?rss to folder URL)Enable OPDS feeds for e-book readers
Who can create shares:
no= nobodya= admin permissionauth= authenticated users
Restrict download-as-zip/tar access (0=nobody, 1=admins, 2=everyone)
Reject zip download if more than N files
Reject zip download if total size exceeds limit
Don’t create volume’s folder if it doesn’t exist
Crash on startup if volume’s folder doesn’t exist