File Naming Patterns
Define how newly uploaded files are named and organized using book metadata.
{{ generateUploadPreview() }}
Specify how book files should be renamed and relocated using metadata such as title, authors, or series. This pattern is applied when using the Move Files feature.
{{ generateMovePreview() }}
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.
You can also wrap parts of the pattern in {{ '{{<...>}' }} to make them optional, if any placeholder inside is missing, that section will be omitted entirely.
{{ '{title}' }} – Book title{{ '{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:
Examples with Full Metadata
title: Harry Potter and the Sorcerer's Stone
authors: J.K. Rowling
series: Harry Potter
seriesIndex: 01
year: 1997
currentFilename: harry1_original.epub
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
Preserve original filename only: {{ '{currentFilename}' }}
Output: harry1_original.epub
Empty pattern (defaults to current filename): {{ '' }}
Output: harry1_original.epub
Examples with Missing Optional Fields
title: Project Hail Mary
authors: Andy Weir
year: 2021
series: (not provided)
seriesIndex: (not provided)
currentFilename: project_hail_mary_final.epub
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
Only folders, no filename: {{ '{authors}/' }}
Output: Andy Weir/project_hail_mary_final.epub
Deep nested folders: {{ '{authors}/books/<{series}/>{title}/' }}
Output: Andy Weir/books/Project Hail Mary/project_hail_mary_final.epub
With static folder prefix: {{ 'Books/<{series}/>{authors} - {title}' }}
Output: Books/Andy Weir - Project Hail Mary.epub
Use original filename in path: {{ '{authors}/books/<{series}/>{currentFilename}' }}
Output: Andy Weir/books/project_hail_mary_final.epub
Prefix current filename manually: {{ '{authors}/final__{currentFilename}' }}
Output: Andy Weir/final__project_hail_mary_final.epub
Filename preserved, renamed folder: {{ '{title}/source/{currentFilename}' }}
Output: Project Hail Mary/source/project_hail_mary_final.epub
Use current filename with year suffix: {{ '{authors}/{year}__{currentFilename}' }}
Output: Andy Weir/2021__project_hail_mary_final.epub
Fallback with optional + extras folder: {{ '<{series}/>{authors}/extras/{currentFilename}' }}
Output: Andy Weir/extras/project_hail_mary_final.epub
Archive structure using original name: {{ 'archive/<{series}/>{year}/{currentFilename}' }}
Output: archive/2021/project_hail_mary_final.epub
Structured folder + renamed file: {{ '{authors}/<{series}/>{title} ({year}) by {authors}' }}
Output: Andy Weir/Project Hail Mary (2021) by Andy Weir.epub