Skip to content

Cannot open PDF shared with another user if download disabled #3991

@elzody

Description

@elzody

Describe the bug
When sharing a PDF to another user with the "Allow download and sync" option unchecked, the other person cannot view the file. It simply shows a blank screen using the files app PDF viewer (files_pdfviewer)

To Reproduce
Steps to reproduce the behavior:

  1. Create or upload any PDF document
  2. Share it with another user on the instance
  3. Uncheck the "Allow download and sync" option in the share settings
  4. Try to open the file on the other account

Expected behavior
It should display the PDF using Nextcloud Office instead of the files PDF viewer, and ideally no error should occur.

Example

Video
internal-share-disable-download-error.webm

Metadata

Metadata

Assignees

Labels

2. developingWork in progressbugSomething isn't working

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions