File Naming Patterns

Configure automatic file organization using metadata placeholders. Patterns are applied when uploading files, moving files within your library, and after metadata updates.

Default File Naming Pattern

This pattern serves as the fallback when no library-specific override is configured.

Default Pattern
@if (defaultErrorMessage) {
{{ defaultErrorMessage }}
}
Preview: {{ generateDefaultPreview() }}

Library-Specific Overrides

Define custom naming patterns for specific libraries. Leave empty to use the default pattern.

@for (library of libraries; track library.id) {
{{ library.name }}
Preview: {{ generateLibraryPreview(library) }}
}

Available Placeholders

Use placeholders to dynamically insert book metadata into file names and folder paths. These will be replaced with actual values when uploading or moving files.

Available Placeholders

  • {{ '{title}' }} – Book title
  • {{ '{subtitle}' }} – Book subtitle
  • {{ '{authors}' }} – Author(s)
  • {{ '{year}' }} – Full year (e.g. 2025)
  • {{ '{series}' }} – Series name
  • {{ '{seriesIndex}' }} – Series index (e.g. 01)
  • {{ '{language}' }} – Language code (e.g. en)
  • {{ '{publisher}' }} – Publisher name
  • {{ '{isbn}' }} – ISBN number
  • {{ '{currentFilename}' }} Original file name (with extension)

Optional blocks

Surround parts of your pattern with angle brackets {{ '{<...>}' }}
to make them optional. If any placeholder inside the block has no value, the whole block is excluded.

Example:

{{ '{<{seriesIndex} - >{title}' }}

  • 01 - Dune (if {{ '{seriesIndex}' }} exists)
  • Dune (if {{ '{seriesIndex}' }} is missing)

Example Patterns & Output

See how different patterns work with sample book metadata and learn best practices for organizing your library.

Examples with Full Metadata

Basic pattern: {{ '{authors} - {title}' }}

Output: J.K. Rowling - Harry Potter and the Sorcerer's Stone.epub

Pattern with punctuation: {{ '{title}: {series}' }}

Output: Harry Potter and the Sorcerer's Stone: Harry Potter.epub

Series in folder path: {{ '{authors}/{series}/{seriesIndex} - {title}' }}

Output: J.K. Rowling/Harry Potter/01 - Harry Potter and the Sorcerer's Stone.epub

Folder only: {{ '{title}/' }}

Output: /Harry Potter and the Sorcerer's Stone/harry1_original.epub

Absolute path: {{ '/{authors}/{title}' }}

Output: /J.K. Rowling/Harry Potter and the Sorcerer's Stone.epub

Reuse original filename in path: {{ '{authors}/{series}/{currentFilename}' }}

Output: J.K. Rowling/Harry Potter/harry1_original.epub

Title + Subtitle: {{ '{title}: {subtitle}' }}

Output: Harry Potter and the Sorcerer's Stone: The Boy Who Lived.epub

Examples with Missing Optional Fields

Pattern with optional blocks: {{ '{authors}/<{series}/><{seriesIndex}. >{title}< ({year})>' }}

Output: Andy Weir/Project Hail Mary (2021).epub

Fallback with seriesIndex and dash: {{ '<{seriesIndex}. >{title}< - {authors}>' }}

Output: Project Hail Mary - Andy Weir.epub

Brackets & punctuation fallback: {{ '<[{series}] >{title} - {authors}' }}

Output: Project Hail Mary - Andy Weir.epub

Series + punctuation fallback: {{ '<{series}: >{title} by {authors}' }}

Output: Project Hail Mary by Andy Weir.epub

Use original filename with year suffix: {{ '{authors}/{year}__{currentFilename}' }}

Output: Andy Weir/2021__project_hail_mary_final.epub

Title + Subtitle fallback: {{ '{title}<: {subtitle}>' }}

Output: Project Hail Mary.epub