View Attachment in Browser #5338

Closed
opened 2026-02-05 09:58:40 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @prohtex on GitHub (Jun 30, 2025).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Is there a method to view attachments in browser? Our users are attaching a lot of PDF files, and it would be nice if there were a way to simply link to them. I noticed the default behavior is to download the file.

Perhaps something like https://wiki.server.com/attachments/1/view that would then simply pass the file directly to the browser.

Thanks!

Exact BookStack Version

BookStack v25.05.1

Log Content


Hosting Environment

Docker

Originally created by @prohtex on GitHub (Jun 30, 2025). ### Attempted Debugging - [x] I have read the debugging page ### Searched GitHub Issues - [x] I have searched GitHub for the issue. ### Describe the Scenario Is there a method to view attachments in browser? Our users are attaching a lot of PDF files, and it would be nice if there were a way to simply link to them. I noticed the default behavior is to download the file. Perhaps something like ```https://wiki.server.com/attachments/1/view``` that would then simply pass the file directly to the browser. Thanks! ### Exact BookStack Version BookStack v25.05.1 ### Log Content ```text ``` ### Hosting Environment Docker
OVERLORD added the 🐕 Support label 2026-02-05 09:58:40 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jun 30, 2025):

Hi @prohtex,

You can use the "Open in tab" option as shown in the docs here: https://www.bookstackapp.com/docs/user/attachments/#accessing-attachments
Or, just directly add a ?open=true query string to the attachment URL.

@ssddanbrown commented on GitHub (Jun 30, 2025): Hi @prohtex, You can use the "Open in tab" option as shown in the docs here: https://www.bookstackapp.com/docs/user/attachments/#accessing-attachments Or, just directly add a `?open=true` query string to the attachment URL.
Author
Owner

@prohtex commented on GitHub (Jun 30, 2025):

Hi @prohtex,

You can use the "Open in tab" option as shown in the docs here: https://www.bookstackapp.com/docs/user/attachments/#accessing-attachments Or, just directly add a ?open=true query string to the attachment URL.

Ah I see, thank you!

@prohtex commented on GitHub (Jun 30, 2025): > Hi [@prohtex](https://github.com/prohtex), > > You can use the "Open in tab" option as shown in the docs here: https://www.bookstackapp.com/docs/user/attachments/#accessing-attachments Or, just directly add a `?open=true` query string to the attachment URL. Ah I see, thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5338