Comment 0 for bug 981430

Revision history for this message
Roman Yepishev (rye) wrote :

At the moment if a .webm file is uploaded, the mime-type returned from the server is application/octet-stream:

Lucid:

Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.guess_type("blah.webm")
(None, None)

Precise:
Python 2.7.3 (default, Apr 10 2012, 12:29:04)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import mimetypes
>>> mimetypes.guess_type("http://ggoogle.com/aaa.webm")
('video/webm', None)

This should be fixed by updating /etc/mime.types, preferably by fetching the up-to-date file from precise to support more mimetypes.