mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
chore(server): save original file name with extension (#7679)
* chore(server): save original file name with extension * extract extension * update e2e test * update e2e test * download archive * fix download archive appending name * pr feedback * remove unused code * test * unit test * remove unused code * migration * noops * pr feedback * Update server/src/domain/download/download.service.ts Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com> --------- Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
parent
f88343019d
commit
3da2b05428
9 changed files with 72 additions and 17 deletions
web/src/lib/utils
|
@ -102,14 +102,14 @@ export const downloadFile = async (asset: AssetResponseDto) => {
|
|||
}
|
||||
const assets = [
|
||||
{
|
||||
filename: `${asset.originalFileName}.${getFilenameExtension(asset.originalPath)}`,
|
||||
filename: asset.originalFileName,
|
||||
id: asset.id,
|
||||
size: asset.exifInfo?.fileSizeInByte || 0,
|
||||
},
|
||||
];
|
||||
if (asset.livePhotoVideoId) {
|
||||
assets.push({
|
||||
filename: `${asset.originalFileName}.mov`,
|
||||
filename: asset.originalFileName,
|
||||
id: asset.livePhotoVideoId,
|
||||
size: 0,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue