[Feature]: Add storage template variable for file type #581

Closed
opened 2026-02-04 21:24:34 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @EnochPrime on GitHub (Jan 12, 2023).

Feature detail

Proposal

Add a new variable to the storage template for uploaded file type.
{{filetype}}: returns "IMG" if the file is an image or "VID" if the file is a video

Background

Images and videos taken from an Android device (and I suspect other device as well) apply a prefix to the file name. For images this is "IMG" and videos it is "VID". If a user wants to define a custom filename template, such as IMG_2022-04-24_15-12-34.jpeg, they can with IMG_{{y}}-{{MM}}-{{dd}}_{{HH}}-{{mm}}-{{ss}}. This however will cause all video files to be prefix with "IMG" as the template does not distinguish between the two.

Platform

Web

Originally created by @EnochPrime on GitHub (Jan 12, 2023). ### Feature detail # Proposal Add a new variable to the storage template for uploaded file type. `{{filetype}}`: returns "IMG" if the file is an image or "VID" if the file is a video # Background Images and videos taken from an Android device (and I suspect other device as well) apply a prefix to the file name. For images this is "IMG" and videos it is "VID". If a user wants to define a custom filename template, such as `IMG_2022-04-24_15-12-34.jpeg`, they can with `IMG_{{y}}-{{MM}}-{{dd}}_{{HH}}-{{mm}}-{{ss}}`. This however will cause all video files to be prefix with "IMG" as the template does not distinguish between the two. ### Platform Web
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#581