mirror of
https://github.com/immich-app/immich.git
synced 2026-03-27 12:20:52 +03:00
fix: send filename when viewing the original file (#20005)
* feat: add fileName to downloadOriginal response * test: add fileName to ImmichFileResponse for downloadOriginal * lint: use single quotes for fileName string in test
This commit is contained in:
@@ -197,6 +197,7 @@ export class AssetMediaService extends BaseService {
|
||||
|
||||
return new ImmichFileResponse({
|
||||
path: asset.originalPath,
|
||||
fileName: asset.originalFileName,
|
||||
contentType: mimeTypes.lookup(asset.originalPath),
|
||||
cacheControl: CacheControl.PrivateWithCache,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user