1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-07 20:36:48 +01:00
immich/docs/docs/partials/_storage-template.md
mmomjian 81cf653752
docs: provide details on storage engine album naming (#6812)
* Update _storage-template.md

* Update _storage-template.md
2024-01-31 22:28:30 -05:00

1.9 KiB

Immich allows the admin user to set the uploaded filename pattern. Both at the directory and filename level.

:::note new version On new machines running version 1.92.0 storage template engine is off by default, for more info. :::

:::tip You can read more about the differences between storage template engine on and off here :::

The admin user can set the template by using the template builder in the Administration -> Settings -> Storage Template. Immich provides a set of variables that you can use in constructing the template, along with additional custom text. If the template produces multiple files with the same filename, they won't be overwritten as a sequence number is appended to the filename.

Year/Year-Month-Day/Filename.Extension

<img src={require('./img/storage-template.png').default} width="100%" title="Storage Template Setting" />

:::tip If an asset is in multiple albums, {{album}} will be set to the name of the album which was most recently created. By default, special characters will be converted to an HTML entity (for example, & -> &amp;). To prevent this, wrap the variable in an extra set of braces (for example, {{{album}}}). You can learn more about this here and here. :::

Immich also provides a mechanism to migrate between templates so that if the template you set now doesn't work in the future, you can always migrate all the existing files to the new template. The mechanism is run as a job on the Job page.