Project

General

Profile

Actions

Defect #19435

closed

PDF's are being uploaded with wrong mimetype "application/force-download" instead of "application/pdf"

Added by Tobias Fischer over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Cant reproduce
Affected version:

Description

Starting with Redmine 3.0 all PDF attachments beeing uploaded are stored in the database with the wrong mimetype "application/force-download" instead of "application/pdf".

This is my redmine3 dev installation which I run on a mac:

Environment:
  Redmine version                3.0.1.stable
  Ruby version                   2.0.0-p481 (2014-05-08) [universal.x86_64-darwin14]
  Rails version                  4.2.1
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.7.19
  Cvs                            1.12.13
  Git                            1.9.5
  Filesystem                     
Redmine plugins:
  redmine_lightbox2              0.2.2

This happens for drag&drop uploads as well as for "normal" file uploads to tickets.

It seems as if this also results in the following webrick warning when trying to download a PDF attachment:

[2015-03-20 19:37:04] WARN  Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true

This warning also appears for images when beeing downloaded.

Files

redmine3.0.1_firefox36.png (39.3 KB) redmine3.0.1_firefox36.png Tobias Fischer, 2015-03-21 12:52
Actions

Also available in: Atom PDF