Feature #2209
closed
MIME type support for repository Entries
Added by Vincent Castellano about 16 years ago.
Updated almost 2 years ago.
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
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'
+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.
Patch for the current #2823 revision.
- Status changed from New to 7
- Assignee set to Toshi MARUYAMA
- Tracker changed from Patch to Feature
- % 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.
- Status changed from 7 to New
- Assignee deleted (
Toshi MARUYAMA)
The request to display repository images inline was implemented in #10362 and #22058.
- Status changed from New to Closed
Also available in: Atom
PDF