Open Viewer on a public file in a public page #508
Labels
1. to develop
Accepted and waiting to be taken care of
discussion
Being discussed
help wanted
Extra attention is needed
low
Low priority
pending fix
Waiting for a fix on one of our dependencies
Milestone
Hey!
First of all: It's great to be able to open the viewer for pictures in a public folder page in NC 19. Yay! Thanks a lot.
I'm already using Viewer in standalone mode to display user's pictures in GpxPod. I provide the absolute path and it works great. My problem is I can't find a way to make it happen in GpxPod public pages.
Public pages in GpxPod are using the folder sharing system. They are accessed with the share token as a GET parameter. The page knows the token, the picture files paths (relative to the shared folder path), the file IDs etc...
Is it possible to just call
Viewer.open(something);
to see a picture? I checked out Viewer sources and it seems the difference is made between public and private pages. Anyway, each time I callViewer.open()
with a relative path or whatever I get prompted for HTTP authentication.I can generate a valid URL to
filesharing/public_preview
but it seems useless here.Any advice?
The text was updated successfully, but these errors were encountered: