photonix icon indicating copy to clipboard operation
photonix copied to clipboard

Photo download button doesn't respect library path.

Open bryanlyon opened this issue 2 years ago • 1 comments

Describe the bug Download fails to account correctly for correct library path.

To Reproduce Steps to reproduce the behavior:

  1. Create a library called "Photos" with a data path of /data/photos2
  2. View a photo through the UI
  3. Click the "download" button
  4. File path given fails to download since it tries to download from path of 127.0.0.1:8000/photos/path instead of 127.0.0.1:8000/photos2/path

Expected behavior File should be downloaded

Server (please complete the following information):

  • QNAP NAS
  • OS: QNAP QTS 5.0
  • Architecture: X86

I'm not sure if this is because the library itself is called "Photos" (instead of "Photos2") or if it's looking to a hardcoded /data/photos location.

bryanlyon avatar Mar 31 '22 06:03 bryanlyon

I could be wrong as I'm just starting to explore this project, but it looks to be hard coded in settings.py. Those may be defaults that should be overridden by user settings, but that's a good place to start debugging.

cilynx avatar Jul 26 '22 16:07 cilynx