Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
With 7.x-2.0-unstable6, media_flickr-7.x-1.0-alpha3, wysiwyg-7.x-2.2, and CKEditor 3.6.5.7647, I'm able to embed flickr photoset using URL as videos.
With 7.x-2.0-unstable7, I'm now unable to embed a flickr photoset. Media modules reports "Only the following types of files are allowed to be uploaded: video."
I've add the 'application/x-shockwave-flash' mimetype to the mimetype list for the video file type, but it is still not being validated by media_file_validate_types().
Any ideas? Jason.
Comment | File | Size | Author |
---|---|---|---|
#3 | media_flickr-mimetypes-1847060-3.patch | 728 bytes | dwatts3624 |
Comments
Comment #1
dwatts3624 CreditAttribution: dwatts3624 commentedI'm having the same issue with the module. Based on issues I've run into with other media modules I'm guessing you're onto the root of the issue with the mimetype.
Comment #2
dwatts3624 CreditAttribution: dwatts3624 commentedI looked through the code a bit. I don't have the skills to solve this but it seems like the module will set the mimetype video/flickr if it detects a photoset. Since this doesn't seem to be added and isn't even an available type on the video file type settings I assume that's what's preventing this from working.
Comment #3
dwatts3624 CreditAttribution: dwatts3624 commentedI guess this was easier than I thought since it's already been discussed in the context of youtube and vimeo (#1823078: Create video/vimeo mimetype). I've attached a patch for testing here. Everything works on my end.
Comment #4
bkat CreditAttribution: bkat commentedYou also need to the following sql to make existing flickr content render properly
update file_managed set type='video' where type='undefined' and filemime='video/flickr';
Comment #5
jasonawant@dwatts3624
Tested patch. Works here too, thanks!
Are you able to see the preview thumbnail of photosets?
Jason
Comment #6
sanduhrs#3 Works as advertised.
Comment #7
aaron CreditAttribution: aaron commentedThe patch at #3 no longer applies.
Comment #8
steinmb CreditAttribution: steinmb commentedPatch in #3 is no longer needed. Just checked out from git and did a clean install to test the state of this module:
Foto set works just fine. All you need to do is go to admin/structure/file-types/manage/video/file-display and check 'Flickr Photoset ' and it just works. Single images is configured/enabled in admin/structure/file-types/manage/image/file-display. Also tested adding a combination of slideshow, single image and locally stored image in the same multivalue field on a single node and that also worked just fine.
There might be migration issues moving from 7.x-1.x to 7.x-2.x but that need to be addressed in a separate issue. Have not checked what happen if you run on a SSL enabled site, perhaps the slideshow get blocked by the browser if it runs in mixed mode.