Project

General

Profile

Actions

Feature #2209

closed

MIME type support for repository Entries

Feature #2209: MIME type support for repository Entries

Added by Vincent Castellano about 18 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Resolution:
Fixed

Description

I didn't like that images didn't just load in the browser that were in a repository, and felt there should be some MIME support, so I gave it a shot. I think it works for any files (with MIME type or not, which just defaults to the old behavior). I don't know the Redmine code base well, and I'm not a Ruby programmer, so it was a quick attempt.


Files

MimeType.patch (1.02 KB) MimeType.patch Vincent Castellano, 2008-11-17 20:56
MimeType.patch (1016 Bytes) MimeType.patch Cleaned up a bit. Vincent Castellano, 2008-11-17 20:57
dl_repo_files_with_MimeType_r2823.patch (944 Bytes) dl_repo_files_with_MimeType_r2823.patch Chris Grieger, 2009-07-18 18:16

Related issues 7 (0 open — 7 closed)

Related to Redmine - Feature #4477: Use mime types in downloading from repositoryClosedActions
Related to Redmine - Defect #6256: Redmine considers non ASCII and UTF-16 text files as binary in SCMClosedToshi MARUYAMAActions
Related to Redmine - Patch #3770: text/html documents force currently firefox to open download dialogClosedActions
Related to Redmine - Feature #6374: File raw view modeClosedToshi MARUYAMAActions
Related to Redmine - Feature #5055: Set mime-type in response when downloading repository filesClosedToshi MARUYAMAActions
Related to Redmine - Defect #6370: UTF-8 BOM only partially hiddenClosedActions
Related to Redmine - Feature #4577: convert text file attached an issue to utf-8.ClosedActions

Updated by Chris Cummer about 18 years ago Actions #2

A slight fix: I think line #125 should read:

send_data @content, :filename => fn, :type => type, :disposition => 'inline'

rather than:

send_data @content, :filename => fn, :type => type, => 'inline'

Updated by Patrick Hurrelmann about 18 years ago Actions #3

+1, I like it very much. It keeps annoying me that files won't open in the browser even if the mime-type in the repository are set properly.

Updated by Ammler _ over 17 years ago Actions #4

+1

Updated by Toshi MARUYAMA over 15 years ago Actions #6

  • Category set to SCM

Updated by Toshi MARUYAMA over 15 years ago Actions #7

  • Status changed from New to 7
  • Assignee set to Toshi MARUYAMA

Updated by Toshi MARUYAMA over 15 years ago Actions #8

  • Tracker changed from Patch to Feature

Updated by Toshi MARUYAMA over 15 years ago Actions #9

  • % Done changed from 0 to 70

As I described at #4477, I implemented this feature at r5210.
I don't know whether "inline" needs or not.

Updated by Jean-Philippe Lang almost 14 years ago Actions #10

  • Status changed from 7 to New

Updated by Toshi MARUYAMA almost 14 years ago Actions #11

  • Assignee deleted (Toshi MARUYAMA)

Updated by Go MAEDA almost 4 years ago Actions #12

  • Resolution set to Fixed

The request to display repository images inline was implemented in #10362 and #22058.

Updated by Go MAEDA almost 4 years ago Actions #13

  • Status changed from New to Closed
Actions

Also available in: PDF Atom