I can view PDFs from Files. When I try to access the same file via the shared link, I receive an error. This error occurs in Incognito, on another device, in other browsers on my computer, and even in the same browser as my logged-in Nextcloud session.
The error in Edge is:
PDF.js v2.4.456 (build: 228a591c)
Message: Failed to fetch
The error in Firefox is:
PDF.js v2.4.456 (build: 228a591c)
Message: NetworkError when attempting to fetch resource.
Similar problem using 20.0.7. Public share link to a Folder holding PDF documents lists the PDF document as “corrupted” when one attempts to view the PDF file. Disabling the NextCloud PDF viewer app somewhat resolves the problem. PDF document is immediately downloaded then opened; rather than showing option to download button.
Just upgraded some Nextcloud installations to versions 20.0.10 and 21.0.2.
The error in picture occurs on files in group folder, external storage (smb, in my case), shared folders and local folders whose path contains spaces.