[GH-ISSUE #648] "View File"/"Edit File" options not working on *.pdf files #395

Closed
opened 2026-04-08 16:52:35 +03:00 by zhus · 3 comments
Owner

Originally created by @935r on GitHub (Oct 31, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/648

Problem

Expectation:
Clicking on the "Edit File"/"View File" option from a *.pdf file opens a PDF-Viewer and shows the PDF file.

Reality:
Clicking on the "Edit File"/"View File" option from a *.pdf file opens a PDF-Viewer (in dufs), but does not load anything. The viewer shows nothing.
(Clicking on the text of the *.pdf file in dufs actually opens the PDF-File in a new browser window without any issue.)

Configuration

Tested with the following for the option "Edit File": ./dufs -b 127.0.0.1 -A

Log

./dufs -b 127.0.0.1 -A
Listening on http://127.0.0.1:5000/
2025-10-31T18:13:40+01:00 INFO - 127.0.0.1 "GET /" 200
2025-10-31T18:13:45+01:00 INFO - 127.0.0.1 "GET /equipment.pdf?edit" 200
2025-10-31T18:13:46+01:00 INFO - 127.0.0.1 "GET /equipment.pdf" 304

Screenshots/Media

PDF-Viewer_Empty

Environment Information

  • Dufs version: v0.45.0
  • Browser/Webdav info: Tested with Firefox 144.0 (64-bit)
  • OS info: Arch Linux
  • Proxy server (if any): -
Originally created by @935r on GitHub (Oct 31, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/648 **Problem** Expectation: Clicking on the "Edit File"/"View File" option from a *.pdf file opens a PDF-Viewer and shows the PDF file. Reality: Clicking on the "Edit File"/"View File" option from a *.pdf file opens a PDF-Viewer (in dufs), but does not load anything. The viewer shows nothing. (Clicking on the text of the *.pdf file in dufs actually opens the PDF-File in a new browser window without any issue.) **Configuration** Tested with the following for the option "Edit File": ./dufs -b 127.0.0.1 -A **Log** ./dufs -b 127.0.0.1 -A Listening on http://127.0.0.1:5000/ 2025-10-31T18:13:40+01:00 INFO - 127.0.0.1 "GET /" 200 2025-10-31T18:13:45+01:00 INFO - 127.0.0.1 "GET /equipment.pdf?edit" 200 2025-10-31T18:13:46+01:00 INFO - 127.0.0.1 "GET /equipment.pdf" 304 **Screenshots/Media** <img width="1920" height="982" alt="PDF-Viewer_Empty" src="https://github.com/user-attachments/assets/d8d7b1d5-15b5-4884-9b11-54596186a618" /> **Environment Information** - Dufs version: v0.45.0 - Browser/Webdav info: Tested with Firefox 144.0 (64-bit) - OS info: Arch Linux - Proxy server (if any): -
zhus closed this issue 2026-04-08 16:52:35 +03:00
Author
Owner

@sigoden commented on GitHub (Nov 3, 2025):

Whether a PDF can be displayed is up to the browser, not dufs.

<!-- gh-comment-id:3479864757 --> @sigoden commented on GitHub (Nov 3, 2025): Whether a PDF can be displayed is up to the browser, not dufs.
Author
Owner

@935r commented on GitHub (Nov 4, 2025):

The browser (tested with firefox 144.0.2 (64-bit) and chromium Version 142.0.7444.59 (Official Build)) can display it in a new tab, so it does not seem to be a functionality problem.

"http://127.0.0.1:5000/fancy_test.pdf" works on both browsers. "http://127.0.0.1:5000/fancy_test.pdf?edit" or "http://127.0.0.1:5000/fancy_test.pdf?view" does not work on both browsers.

Chromium gives the info "This page has been blocked by Chromium".

Is this a file access option which has to be enabled in the browser? Why is this needed, when it opens "http://127.0.0.1:5000/fancy_test.pdf" without issue?

I would really appreciate a short explanation or link. From Your reply im in the assumption, that you think, the browser does not have the capability to display the pdf-file.

edit_pdf separate_tab
<!-- gh-comment-id:3487147713 --> @935r commented on GitHub (Nov 4, 2025): The browser (tested with firefox 144.0.2 (64-bit) and chromium Version 142.0.7444.59 (Official Build)) can display it in a new tab, so it does not seem to be a functionality problem. "http://127.0.0.1:5000/fancy_test.pdf" works on both browsers. "http://127.0.0.1:5000/fancy_test.pdf?edit" or "http://127.0.0.1:5000/fancy_test.pdf?view" does not work on both browsers. Chromium gives the info "This page has been blocked by Chromium". Is this a file access option which has to be enabled in the browser? Why is this needed, when it opens "http://127.0.0.1:5000/fancy_test.pdf" without issue? I would really appreciate a short explanation or link. From Your reply im in the assumption, that you think, the browser does not have the capability to display the pdf-file. <img width="1905" height="1006" alt="edit_pdf" src="https://github.com/user-attachments/assets/965694f9-b3d3-4838-a31c-77ece3e5620d" /> <img width="1905" height="1006" alt="separate_tab" src="https://github.com/user-attachments/assets/2c6e3b08-e825-45f5-91f0-7e036db98761" />
Author
Owner

@Mihara commented on GitHub (Nov 26, 2025):

I also happen to have the same issue: PDFs cannot be viewed, with exactly the same symptoms, even though the same PDFs can be viewed in the browser in other circumstances.

This seems like a bug in the frontend somewhere, or an extra requirement to the reverse proxy settings that we both don't know about...

<!-- gh-comment-id:3582374486 --> @Mihara commented on GitHub (Nov 26, 2025): I also happen to have the same issue: PDFs cannot be viewed, with exactly the same symptoms, even though the same PDFs can be viewed in the browser in other circumstances. This seems like a bug in the frontend somewhere, or an extra requirement to the reverse proxy settings that we both don't know about...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#395