When attaching Ogg Vorbis files using this module, the little icon displayed next to it appears to be a generic one, not an audio icon like the one for MP3. A screenshot is attached to this issue.

CommentFileSizeAuthor
screenshot.png2.44 KBDragoonBoots

Comments

drewish’s picture

check the files table and look at the mime type. we're at the mercy of the mime type that your browser provided.

DragoonBoots’s picture

It was classified as "application/ogg", which seems correct.

drewish’s picture

it's correct but based simply off of that is the file audio or video? i think you'd need to use something like mimedetect to be more accurate.

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

The proper mime type for ogg is application/ogg since it is a container format and can be either audio or video. For this particular case defaulting to the video icon might be appropriate since it is within the capabilities of the format... Unfortunately the developers of OGG decided to use the same mime type for all ogg encoded files no matter what types of streams are encoded inside the container.

Can you try using mime detect and see if it returns a different mime type. I might be able to update the magic database to return unofficial audio/ogg or video/ogg mime types.

DragoonBoots’s picture

If you mean use FileField alongside mime detect that's what I was doing. In the interest of curiosity, I ran the file command on the Ogg Vorbis file, and it returned the following:
tt-0.ogg: Ogg data, Vorbis audio, mono, 44100 Hz, ~96000 bps, created by: Xiph.Org libVorbis I

drewish’s picture

but that's not a mimetype... run it with --mime --brief

DragoonBoots’s picture

It returned application/ogg, same as what appeared in the files table when I uploaded the file.

drewish’s picture

ah... yeah so we're coming back with the correct information. maybe the best thing would be to add an ogg specific icon.

dopry’s picture

anyone up to massaging an OGG icon from the existing icon set?

DragoonBoots’s picture

Is it possible to just use the existing icon used for generic audio files?

drewish’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

check out the the filemime module: http://drupal.org/project/filemime