nextcloud / nextcloud/viewer

svg files not previewed under public share

Open
#959 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.