https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292014-01-04T17:24:23ZRedmineRedmine - Feature #15790: Use the mime-types gem to get mime type for unknown extensionhttps://www.redmine.org/issues/15790?journal_id=541152014-01-04T17:24:23Zluigifab !
<ul></ul><p>Ok, I think this will problem take more than 3 years to resolve it.<br />Because => <a class="issue tracker-1 status-5 priority-3 priority-lowest closed" title="Defect: "html" tag's xml:lang always "en" for all languages (Closed)" href="https://www.redmine.org/issues/4009">#4009</a> (2009-10-09) => <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Synchronize the lang attribute of the HTML with the display language (Closed)" href="https://www.redmine.org/issues/14206">#14206</a> (2013-06-04) => fixed 2013-07-13.</p>
<p>So, I think that the solution is to run <em>file</em> command to determine file mimetype's:<br /><em><strong>file --brief --mime-type .../file.webm</strong></em> => <em>video/webm</em></p> Redmine - Feature #15790: Use the mime-types gem to get mime type for unknown extensionhttps://www.redmine.org/issues/15790?journal_id=541302014-01-05T16:39:49ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Tracker</strong> changed from <i>Defect</i> to <i>Feature</i></li><li><strong>Subject</strong> changed from <i>Mime type of webm/ogv files</i> to <i>Use the mime-types gem to get mime type for unknown extension</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>2.5.0</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p><code>Redmine::MimeType.of</code> now uses the <code>mime-types</code> gem for unknown extensions (<a class="changeset" title="Use the mime-types gem for getting mime types from filenames (#15790)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/12483">r12483</a>). The first type is returned when multiple types match the extension, <code>Redmine::MimeType.of('402388.webm')</code> returns <code>audio/webm</code>.</p> Redmine - Feature #15790: Use the mime-types gem to get mime type for unknown extensionhttps://www.redmine.org/issues/15790?journal_id=571412014-06-26T21:14:22Zluigifab !
<ul></ul><p>Wow, express!</p>