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.

CommentFileSizeAuthor
#3 media_flickr-mimetypes-1847060-3.patch728 bytesdwatts3624
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dwatts3624’s picture

I'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.

dwatts3624’s picture

I 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.

dwatts3624’s picture

Version: 7.x-1.0-alpha3 » 7.x-2.x-dev
Status: Active » Patch (to be ported)
FileSize
728 bytes

I 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.

bkat’s picture

You 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';

jasonawant’s picture

@dwatts3624

Tested patch. Works here too, thanks!

Are you able to see the preview thumbnail of photosets?

Jason

sanduhrs’s picture

Component: Miscellaneous » Code
Category: support » task
Status: Patch (to be ported) » Reviewed & tested by the community

#3 Works as advertised.

aaron’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs work

The patch at #3 no longer applies.

steinmb’s picture

Status: Needs work » Fixed

Patch in #3 is no longer needed. Just checked out from git and did a clean install to test the state of this module:

  • file_entity
  • media
  • media_flickr
  • Drupal 7.28

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.