For public shares of bitmap files, Nextcloud displays a preview to anonymous visitors just as for regular users who are signed in. For SVG files, however, the preview is only available to regular users not using a public share.
To reproduce, place a valid SVG document in a server folder, Navigate to it using the Files application, and notice that a preview is available. Then create a public share. Copy the link, sign out, and visit the link. The interface allows downloading but not previewing the file.
Operating system: Linux
Web server: Apache
Database: MariaDB
PHP version: 7.3.24
Nextcloud version: 20.0.2
I'm wondering if it's easy to fix but so low-priority it'll never be done or if it's a bit more complex than it seems and/or more information is required.
Thanks for documenting the issue BTW @brainchild0.
For public shares of bitmap files, Nextcloud displays a preview to anonymous visitors just as for regular users who are signed in. For SVG files, however, the preview is only available to regular users not using a public share.
To reproduce, place a valid SVG document in a server folder, Navigate to it using the Files application, and notice that a preview is available. Then create a public share. Copy the link, sign out, and visit the link. The interface allows downloading but not previewing the file.
Operating system: Linux Web server: Apache Database: MariaDB PHP version: 7.3.24 Nextcloud version: 20.0.2