mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
fix(server): static mail attachment extension (#11254)
* fix: static file extension * chore: unit tests
This commit is contained in:
parent
54488b1016
commit
7ecdcb3bc0
4 changed files with 441 additions and 17 deletions
|
|
@ -11,6 +11,10 @@ export function getFileNameWithoutExtension(path: string): string {
|
|||
return basename(path, extname(path));
|
||||
}
|
||||
|
||||
export function getFilenameExtension(path: string): string {
|
||||
return extname(path);
|
||||
}
|
||||
|
||||
export function getLivePhotoMotionFilename(stillName: string, motionName: string) {
|
||||
return getFileNameWithoutExtension(stillName) + extname(motionName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue