Closed (fixed)
Project:
Media Gallery
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2011 at 19:20 UTC
Updated:
25 Oct 2011 at 01:40 UTC
Was chatting with a user that was trying to upload an mp3 file to a gallery, but that doesn't seem to be allowed. Documentation only talks about images and video so my guess is that it isn't supported yet.
However, the upload field has this text under it:
"Allowed file types: jpg jpeg gif png txt doc xls pdf ppt pps odt ods odp mp3 mov m4v mp4 mpeg avi ogg wmv ico."
Audio formats are listed as allowed formats.
Comments
Comment #1
JacobSingh commentedYeah, this is a UX issue. Search around the queue (I'm too busy at the moment) and you'll see issues about media type definition, etc.. the limitation is actually passed in when the media browser is instantiated and is related to the field definition (Gallery nodes have a media field on them).
Comment #2
tsvenson commentedTried to edit the Multimedia asset field for the Gallery CT, but it is locked and can't be changed.
Comment #3
JacobSingh commentedWe should have a separate bug for that. Adding audio is really a feature request, but we should make it possible to unlock that field in the standard d.o. version (from the UI). You can unlock it in the DB in the field_config table.
Comment #4
drupaljohngo commentedIs there a work around with embedding with a web service?
I'm very interested in created a mp3 gallery. Oh, well. Have to use the old noodle and figure
out views and taxonomy.
Comment #5
ohthehugemanatee commentedIf "adding audio is a feature request", please remove "Audio" from its conspicuous place in the File Types list. It's deceptive and confusing for the user. We'd all love to see Audio added to the list of supported file types for this module... but let's not jump the gun. :)
Comment #6
David_Rothstein commented@ohthehugemanatee: The reason that's difficult is that the file types list is not provided by the Media Gallery module.
There's probably a way to alter it, but then it might be blocked in other situations also where it's not supposed to be (I don't personally know if Media module itself works well with audio yet).
Comment #7
effulgentsia commentedJust committed this to Media Gallery: http://drupalcode.org/project/media_gallery.git/commitdiff/71f597b?hp=08....
Note that this does not implement formatters for audio though. media_gallery_file_default_displays() provides default display configurations for local images and YouTube videos only. I don't know what module will end up being responsible for rendering uploaded audio (perhaps http://drupal.org/project/audio). Remote provider integration modules (e.g., http://drupal.org/project/media_soundcloud) will be responsible for their rendering.