Adding SWF Files?

GeekDrop
GeekDrop's picture

Joined: 2008-05-12
Posts: 21
Posted: Wed, 2013-09-11 20:00

This is the first time I've attempted to add a Flash (SWF) file to my gallery, and I just realized that it's not supported in G3; I searched the forums and noticed a post saying it'll never be added unless someone writes a module to support it, so I searched the contrib modules and saw nothing there for it. Does anyone know of a "hack" or a module that does this that may not be in the list of modules?

Thanks


GeekDrop.com | GeekDrop Facebook Fan Page | GeekDrop Twitter

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2013-09-12 04:49

Adobe has a abysmal security history with swf files. So your on your own allowing unknown people adding them.....
First try: http://codex.galleryproject.org/Gallery3:Modules:movie_tools if it works; great! if not:

Edit gallery3/modules/gallery/helpers/legal_file.php

      $types_by_extension_wrapper->types_by_extension = array(
        "flv" => "video/x-flv", "mp4" => "video/mp4", "m4v" => "video/x-m4v", "swf" => "application/x-shockwave-flash");

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team