Posted by filmoreha on February 25, 2013 at 2:15am
If you are using Media in your installation, which field formatter would you personally use when accepting both images and videos.? Whether using File field or Image field, you can set both of them to accept images and video. Just curious what other people are doing.
Comments
Don't hold me to this, but I
Don't hold me to this, but I believe you just use 'File' field type for whatever you're uploading, be it a image/video/document.
I think the whole point of the media module is to just select 'File' and be done with it rather than having to preselect image, or video etc...
A good example is my stepson who I am helping to build a Drupal site (at 7 years old they have a rather unique take on things). So, we added a field 'Main image' and used image field (with media file selector widget). 10 minutes later... "How do I add a powerpoint presentation", another 10, "How do I add a video"... I was thinking "We can't! I chose image field and labelled it 'Main image' damnit!".
So, deleted that field. Then we used 'File' field instead (with media file selector widget), which now allows to add anything to this field, and labelled it with the more sensible, "Attach a file".
I may be wrong about using 'File' field but it makes sense to me to just use that, then set how the file is rendered in another area (/admin/structure/file-types). It does seem like another layer of complexity but it does make sense in my head, after it stops spinning.
I hope maybe this helps demonstrate not tying yourself down to only an image field!