pulsejet / memories

Fast, modern and advanced photo management suite. Runs as a Nextcloud app.
https://memories.gallery
GNU Affero General Public License v3.0
2.82k stars 76 forks source link

Unable to download 2 photos in a row #1121

Closed AiroPi closed 1 month ago

AiroPi commented 1 month ago

Describe the bug I am able to download a photo the first time, then it doesn't work, and I need to reload the page to be able to download again.

Screenshots

https://github.com/pulsejet/memories/assets/47398145/c3118b8d-9f89-4343-9be5-1720b0f2d717

Platform:

pulsejet commented 1 month ago

Any logs in js console?

AiroPi commented 1 month ago

@pulsejet no, I checked, it seemed strange to me but there was nothing I will try again.

edit: I just checked again, nothing in the console, and in the network panel the request is executed, and data is received, but the file isn't downloaded.

pulsejet commented 1 month ago

Perhaps the file is overwritten? Did you try downloading two different files? Nvm

pulsejet commented 1 month ago

Can you reproduce the error on the demo at https://demo.memories.gallery/apps/memories/

AiroPi commented 1 month ago

Hm I have no problem on the demo. The files are correctly downloaded 🤔

pulsejet commented 1 month ago

Hm, can you try safari with your instance?

pulsejet commented 1 month ago

Another thing to try -- your instance in incognito mode. Maybe some permission (multiple file download) got denied

AiroPi commented 1 month ago

It works fine with Safari...

I tested to clear the cache / remove the cookies but it didn't change anything.

AiroPi commented 1 month ago

@pulsejet same problem in incognito

AiroPi commented 1 month ago

I've tested with an other chromium-based browser and it works fine too 🤷 The problem is only between my current browser and my memories instance.

pulsejet commented 1 month ago

Likely a bug in the browser then 😆 The download logic is too simple, I can't see how it could fail without error ...

AiroPi commented 1 month ago

I don't see why either. What's strange is that it doesn't on the demo. I'll keep looking on my own, thanks!

AiroPi commented 1 month ago

Btw the same thing occur when I try to download from the files interface, so it isn't related to memories at all.

AiroPi commented 1 month ago

If anyone encounters the same problem, the solution is quite simple. Search for "All site settings" somewhere in your chromium-based web browser (or directly goes to chrome://settings/content/siteDetails?site=https://) and makes sure "automatic download" isn't blocked. That's it.