svg files not previewed under public share
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 119
- Forks
- 72
- Avg merge
- 18h 42m
- Merged PRs (30d)
- 24
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue through the Files application: open a valid SVG while signed in, create a public share, sign out, and visit the shared link. Compare the signed-in and anonymous viewer flows; done means an anonymous visitor can preview the SVG instead of only downloading it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100