MIME type support for repository Entries
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.
A slight fix: I think line #125 should read:
send_data @content, :filename => fn, :type => type, :disposition => 'inline'
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 (
Also available in: Atom