Closed
Bug 459320
Opened 17 years ago
Closed 17 years ago
MDC: Serve .ogg files with correct MIME types
Categories
(mozilla.org Graveyard :: Server Operations, task)
mozilla.org Graveyard
Server Operations
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sheppy, Assigned: oremj)
Details
In order to support video/audio tag samples, please add the correct MIME types for these files to MDC. Thanks!
Comment 1•17 years ago
|
||
Done.
+# https://bugzilla.mozilla.org/show_bug.cgi?id=459320
+# From http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
+# 1 .ogx - application/ogg
+# 2 .ogv - video/ogg
+# 3 .oga - audio/ogg
+# 4 .ogg - audio/ogg
+# 5 .spx - audio/ogg
+# 6 .flac - audio/flac
+# 7 .anx - application/annodex
+# 8 .axa - audio/annodex
+# 9 .axv - video/annodex
+# 10 .xspf - application/xspf+xml
+AddType application/ogg .ogx
+AddType video/ogg .ogv
+AddType audio/ogg .oga
+AddType audio/ogg .ogg
+AddType audio/ogg .spx
+AddType audio/flac .flac
+AddType application/annodex .anx
+AddType audio/annodex .axa
+AddType video/annodex .axv
+AddType application/xspf+xml .xspf
+
Assignee: server-ops → justdave
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment 2•17 years ago
|
||
macbook:~ dave$ curl -sI 'http://developer.mozilla.org/@api/deki/files/2926/=AudioTest_(1).ogg'
HTTP/1.1 200 OK
Date: Mon, 13 Oct 2008 06:31:49 GMT
Server: Dream-HTTPAPI/1.5.6.2743
Content-Type: application/ogg
Content-Length: 42324
Comment 3•17 years ago
|
||
hmm, that doesn't look like it worked, actually. On the other hand, the Server: line leads me to believe that's Deki's fault rather than Apache's.
| Reporter | ||
Comment 4•17 years ago
|
||
I've emailed MindTouch to see what's up.
| Reporter | ||
Comment 5•17 years ago
|
||
OK, here's how to do it so Deki has a clue, according to Roy at MindTouch:
I'm guessing the problem is Deki is associating .ogg files as application/x-octet-stream. To fix this:
In LocalSettings.php:
$wgMimeTypes['ogg'] = 'audio/ogg';
Note this will only apply retroactively to new files that are updated - you can fix old files by going into the database and running a query ("UPDATE attachments SET at_filetype = 'audio/ogg' WHERE at_filetype = 'application/x-octet-stream' AND at_extension = 'ogg';) - BUT BE SURE YOU DO A DATABASE DUMP OF THE ATTACHMENTS TABLE in case my SQL is not up to par ;)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Updated•17 years ago
|
Assignee: justdave → oremj
| Assignee | ||
Comment 6•17 years ago
|
||
For some reason their filetype was application/ogg. Anyways, I ran:
update attachments set at_filetype = 'audio/ogg' where at_extension = 'ogg';
Query OK, 2 rows affected (0.19 sec)
Rows matched: 2 Changed: 2 Warnings: 0
Also, I made the change in LocalSettings.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•