Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[24343] Allow PDFs to be served inline

Oliver Güntherf37d6d563d8d
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index cec5d4673ae..a44d18cd1ed 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -100,7 +100,7 @@ class Attachment < ApplicationRecord
# images are sent inline
def inlineable?
- is_plain_text? || is_image?
+ is_plain_text? || is_image? || is_pdf?
end
def is_plain_text?