dicomviewer icon indicating copy to clipboard operation
dicomviewer copied to clipboard

Fix DICOM viewer for public shares

Open loxK opened this issue 5 months ago • 3 comments

  • Detect public pages and use appropriate endpoint (publicdicomjson vs dicomjson)
  • Add URL fallback for public page/token detection when DOM elements unavailable
  • Scan clicked subfolder instead of share root for DICOM files
  • Enable scanning files without proper DICOM MIME type (isOpenNoExtension)
  • Use WebDAV public endpoint instead of download redirect for file access

Fixes https://github.com/ayselafsar/dicomviewer/issues/108

loxK avatar Oct 30 '25 04:10 loxK

I tried your fix and now it is possible to open the dicomviewer within a public share but the dicomviewer cannot open the pictures.

/nextcloud/index.php/public.php/dav/files/8HrPcxsRzLfDNZ8/wetransfer_test-ct_2025-10-24_0908/Z160 HTTP/1.1" 404 7226

mgrosse66 avatar Nov 03 '25 15:11 mgrosse66

I tried your fix and now it is possible to open the dicomviewer within a public share but the dicomviewer cannot open the pictures.

It wasn't working with Nextcloud installations not using pretty URLs. I have modified my commit. Please retry.

loxK avatar Nov 04 '25 01:11 loxK

Thank you very much, now the dicomviewer works with public shares.

mgrosse66 avatar Nov 04 '25 17:11 mgrosse66