Skip to main content
Volflags are per-volume configuration options. Many global options can be set as volflags, and most volflags can also be set as global options.
See the complete list of volflags for all available options.

Syntax

Volflags are specified in the flags: section of a volume configuration:

Upload Configuration

Deduplication

boolean
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
boolean
Dedup with hardlink only, never symlink. Make full copy if hardlink impossible.
Enable reflink-based deduplication (CoW filesystems), fallback to full copy when impossible
number
default:"50"
How careful to be when deduplicating:
  • 1 = just verify filesize
  • 50 = verify file contents have not been altered (default)
boolean
Reject duplicate files during upload (only matches within same volume)
boolean
Also reject dupes when moving a file into another volume
boolean
Don’t use existing data on disk for dupes. Reduces HDD reads but increases network load.

Upload Rules

string
Maximum number of uploads in a time period
string
Maximum upload bytes in a time period
Suffixes: b, k, m, g, t
string
Total volume size limit
string
Maximum number of files in volume
string
Allow filesizes within range
string
Ensure free disk space by rejecting uploads

Upload Behavior

boolean
Force randomized filenames, 9 characters long by default
number
default:"9"
Length of randomized filenames
number
default:"0"
When to overwrite existing files:
  • 0 = never (generate new filename)
  • 1 = if client file is newer
  • 2 = always overwrite
string
default:"c"
How to timestamp uploaded files:
  • c = client last-modified time
  • u = upload time (server time)
  • fc = force client time
  • fu = force upload time
boolean
Enable filetype detection for nameless uploads
string
default:"put-{now.6f}-{cip}.bin"
Filename template for nameless uploads
boolean
Force all uploads into the top folder of the volume (prevent subdirectories)
boolean
Delete unfinished uploads when they timeout (after --snap-drop period)

Upload Rotation

Move uploads into organized folder structures automatically.
string
Organize by number of files per folder
Example: file-1234.jpg12/34/file-1234.jpg
string
Organize by date/time format
Example: Upload at 2026-03-03 14:30 → 2026-03/03-14/file.jpg
string
default:"UTC"
Timezone for rotf date formattingExamples: Europe/Oslo, America/Toronto, Asia/Tokyo
number
Auto-delete uploads after N seconds
Clients can specify shorter lifetimes when uploading.

File Permissions

string
default:"644"
Unix permissions for new files
string
default:"755"
Unix permissions for new directories
number
default:"-1"
Unix user-id to chown new files/folders to (-1 = don’t change)
number
default:"-1"
Unix group-id to chown new files/folders to (-1 = don’t change)
boolean
Allow uploading even if volume is inside a ramdisk
All uploaded data will be lost on server reboot!

Compression

boolean
Allow server-side gzip compression of uploads with ?gz URL parameter
boolean
Allow server-side lzma compression of uploads with ?xz URL parameter
string
Force server-side compression (optional: specify algorithm and level)

Database Configuration

Indexing

boolean
Enable database; makes files searchable and enables upload-undo
boolean
Scan writable folders for new files on startup (also sets e2d)
boolean
Scan all folders for new files on startup (also sets e2d)
boolean
Enable multimedia indexing (audio/video tags)
boolean
Scan existing files for tags on startup (also sets e2t)
boolean
Delete all metadata from DB for full rescan (also sets e2ts)
boolean
Disable metadata collection (overrides -e2t*)
Recommended for security when accepting uploads from untrusted users.
boolean
Disable all database features (overrides all -e2*)

Database Location

string
Location for thumbnails and database
string
Location for database only (keep thumbnails in volume)
string
Disable database if specified file doesn’t exist

Database Behavior

number
Scan for new files every N seconds
regex
Skip hashing files matching regex pattern
regex
Fully ignore files matching regex pattern
boolean
Don’t forget files when deleted from disk (keep in database)
number
Forget uploader IP after N seconds (GDPR compliance)
boolean
Never store uploader IP in database (disables unpost feature)
string
default:"wal"
Database speed-durability tradeoff:
  • acid = safest, slowest
  • swal = safe, fast
  • wal = balanced (default)
  • yolo = fastest, data loss possible
Cross-volume dupe detection/linking
Dangerous - can create links outside volume boundaries!
boolean
Don’t descend into other filesystems during scanning
boolean
Don’t follow symlinks leaving the volume root

Filekeys and Dirkeys

number
Generate per-file access keys (N characters long)
Keys are invalidated if filesize or inode changes.Example URL: https://example.com/file.jpg?k=Ab3D
number
Generate slightly weaker per-file keys (not affected by filesize/inode)Better for files that may be modified.
number
Generate per-directory access keys
boolean
Per-directory keys allow browsing into subdirectories
boolean
Allow seeing files (not folders) in a directory with g permission without valid dirkey

Thumbnails

boolean
Disable all thumbnails
boolean
Disable video thumbnails only
boolean
Disable audio thumbnails (spectrograms) only
boolean
Disable image thumbnails only
string
Thumbnail resolution (WxH)
string
Center-cropping behavior: y, n, fy, fn
string
3x resolution thumbnails: y, n, fy, fn
number
default:"40"
WebP/JPEG thumbnail quality (10-90)
number
Convert-to-image timeout in seconds
number
Convert-to-audio timeout in seconds
number
default:"1"
Make spectrograms:
  • 0 = never
  • 1 = fallback if no thumbnail available
  • 2 = always
string
Use custom thumbnail for file extension

Client and UX

boolean
Show grid/thumbnails view by default
boolean
Enable selecting files in grid by ctrl-click
string
Default sort order
boolean
Natural-sort of leading digits in filenames (e.g., file2 before file10)
regex
Don’t list files matching regex
boolean
Force-download files on click (no inline preview)
boolean
Don’t show total folder size (~30% faster listings)
string
default:"all"
Who can see disk usage info:
  • no = nobody
  • a = admin permission
  • rw = read-write access
  • w = write access
  • auth = authenticated users
  • all = everyone
string
Per-volume favicon URL
string
Theme color (hint for browsers, discord embeds)

Document Embedding

string
default:"readme.md,README.md"
Files to embed as readmes
string
Files to embed as preadmes (before file listing)
string
Files to embed above/before files
string
Files to embed below/after files
boolean
Write-only users can upload prologues/epilogues without getting renamed

Security

boolean
Return HTML and markdown as text/plain (prevents XSS)
boolean
Allow indexing by search engines (default)
boolean
Ask search engines not to index this volume
boolean
Show dotfiles in search results (if user can see dotfiles)
boolean
Allow all users with read-access to enable showing dotfiles in listings

Other Features

boolean
Enable RSS feeds (add ?rss to folder URL)
boolean
Enable OPDS feeds for e-book readers
string
default:"auth"
Who can create shares:
  • no = nobody
  • a = admin permission
  • auth = authenticated users
string
Restrict download-as-zip/tar access (0=nobody, 1=admins, 2=everyone)
string
Reject zip download if more than N files
string
Reject zip download if total size exceeds limit
boolean
Don’t create volume’s folder if it doesn’t exist
boolean
Crash on startup if volume’s folder doesn’t exist

Complete Example