immich-app / immich

High performance self-hosted photo and video management solution.
https://immich.app
GNU Affero General Public License v3.0
33.06k stars 1.59k forks source link

Cannot download images when browsing on Webview #9133

Closed nghduc97 closed 2 weeks ago

nghduc97 commented 2 weeks ago

The bug

Typically, when open a link from messaging apps, link is opened on webview (Android Webview in my case) instead of the browser. If I try to download in there, even after the download progress finish, there is no save file to storage prompt like on the browser.

The OS that Immich Server is running on

Ubuntu

Version of Immich Server

v1.102.3

Version of Immich Mobile App

v1.102.3

Platform with the issue

Your docker-compose.yml content

irrelevant

Your .env content

irrelevant

Reproduction steps

1. share an album
2. paste share link on some messaging app (Messenger, Telegram, etc)
3. click the link to open
4. try download an image to local device
...

Relevant log output

No response

Additional information

No response

mmomjian commented 2 weeks ago

Are you able to test downloading an image from a different website in Android Webview and see if it is allowed? Typically these browsers are more heavily sandboxed. Example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_a_download

nghduc97 commented 2 weeks ago

Yes, I have tried downloading other files. They work fine.

My mom complained this actually, I'll make a PR to fix this later.

nghduc97 commented 2 weeks ago

My bad, I got it wrong, other messaging apps like Telegram work fine. It is the problem of Zalo (a popular messaging app in my country) trying capture the download and save it in specific location that cause issues. I'll close this.