Web: Unable to download a live photo from an album link #5301

Closed
opened 2026-02-05 11:19:40 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Mikayex on GitHub (Feb 1, 2025).

The bug

The download button on a single picture doesn't work on live photos (taken with Pixel 8) from an album share link. The button does nothing and the browser console emits an error.

It works correctly on normal pictures.

The OS that Immich Server is running on

Docker on Debian 12

Version of Immich Server

v1.125.7

Version of Immich Mobile App

v1.125.5

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

Shouldn't be needed (ask otherwise)

Your .env content

Shouldn't be needed (ask otherwise)

Reproduction steps

  1. Make an album with a live photo
  2. Create a public link to this album
  3. Open the photo from the album link
  4. Click on the download button
  5. Nothing happens

Relevant log output

vaGWhJfi.js:9 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'download')
    at Bo (vaGWhJfi.js:9:60182)

Additional information

No response

Originally created by @Mikayex on GitHub (Feb 1, 2025). ### The bug The download button on a single picture doesn't work on live photos (taken with Pixel 8) from an album share link. The button does nothing and the browser console emits an error. It works correctly on normal pictures. ### The OS that Immich Server is running on Docker on Debian 12 ### Version of Immich Server v1.125.7 ### Version of Immich Mobile App v1.125.5 ### Platform with the issue - [ ] Server - [x] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML Shouldn't be needed (ask otherwise) ``` ### Your .env content ```Shell Shouldn't be needed (ask otherwise) ``` ### Reproduction steps 1. Make an album with a live photo 2. Create a public link to this album 3. Open the photo from the album link 4. Click on the download button 5. Nothing happens ### Relevant log output ```shell vaGWhJfi.js:9 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'download') at Bo (vaGWhJfi.js:9:60182) ``` ### Additional information _No response_
Author
Owner

@bo0tzz commented on GitHub (Feb 1, 2025):

Please share more detail; what OS & browser? Does it happen without extensions/in an incognito tab/etc?

@bo0tzz commented on GitHub (Feb 1, 2025): Please share more detail; what OS & browser? Does it happen without extensions/in an incognito tab/etc?
Author
Owner

@Mikayex commented on GitHub (Feb 1, 2025):

Android (2 different devices) and Linux, all on Chrome. The issue is present on both normal mode and incognito.
I also tried to disable the cache on network tab without success.

I will try on firefox when I have time

@Mikayex commented on GitHub (Feb 1, 2025): Android (2 different devices) and Linux, all on Chrome. The issue is present on both normal mode and incognito. I also tried to disable the cache on network tab without success. I will try on firefox when I have time
Author
Owner

@Mikayex commented on GitHub (Feb 2, 2025):

I wonder if the problem is not caused by the get(preferences) in this line
2b41b5efe1/web/src/lib/utils/asset-utils.ts (L232)

Since there is no user logged in, there are no preferences, right?

Also, it doesn't work with Firefox on Linux.

@Mikayex commented on GitHub (Feb 2, 2025): I wonder if the problem is not caused by the `get(preferences)` in this line https://github.com/immich-app/immich/blob/2b41b5efe159921bef8ebb4928eed592c5f93923/web/src/lib/utils/asset-utils.ts#L232 Since there is no user logged in, there are no preferences, right? Also, it doesn't work with Firefox on Linux.
Author
Owner

@Mikayex commented on GitHub (Mar 1, 2025):

After testing in dev mode, I confirm the error is on line 232 of asset-utils.ts:

asset-utils.ts:232 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'download')
    at downloadFile (asset-utils.ts:232:62)

And indeed get(preferences) is undefined when the user is not logged in (tested in private browsing mode)...

I will try to make a PR to fix it...

@Mikayex commented on GitHub (Mar 1, 2025): After testing in dev mode, I confirm the error is on [line 232 of asset-utils.ts](https://github.com/immich-app/immich/blob/f11080cc2d72c832c3816e90219649d16c7577ee/web/src/lib/utils/asset-utils.ts#L232): ``` asset-utils.ts:232 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'download') at downloadFile (asset-utils.ts:232:62) ``` And indeed `get(preferences)` is `undefined` when the user is not logged in (tested in private browsing mode)... I will try to make a PR to fix it...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#5301