I need to put .SWF files created with camtasia using swftools.
JavaScript Embedding Method: SWFObject v2 - Geoff Stearns
All pages: selected
Check files: selected
Allow SWF Tools to grant access to supported private files: selected

Files are uploaded via drupal upload module and are stored outside root folder.
If I upload a .flv file and put [swf file="some-flv-file.flv"] file it works fine, but if I upload a .swf file and put [swf file="some-swf-file.swf"] file I get Movie not loaded.

Using firebug I can see the swf file gets downloaded but is never loaded
I have tried with 3 different swf files and same results.
Any help will be appreciated.

Comments

Stuart Greenfield’s picture

Are you using clean or non-clean urls?

victorburgos’s picture

Clean URLs

lightsurge’s picture

Version: 5.x-2.4 » 6.x-2.5

I'm getting the same behaviour as this with 2.5 and 3.x

swftools/swfobject2 creates a perfectly good object:

<object type="application/x-shockwave-flash" id="swf13316584591" data="https://site.example.com/system/files/movie.swf" width="130" height="130"><param name="swliveconnect" value="default"><param name="play" value="true"><param name="loop" value="true"><param name="menu" value="false"><param name="quality" value="autohigh"><param name="scale" value="showall"><param name="align" value="l"><param name="salign" value="tl"><param name="wmode" value="opaque"><param name="bgcolor" value="#FFFFFF"><param name="version" value="7"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="sameDomain"><param name="base" value="https://site.example.com/system/files/"><param name="src" value="https://site.example.com/system/files/movie.swf"><param name="height" value="130"><param name="width" value="130"></object>

But the swf movie never loads. By putting the movie in a publicly accessible folder and altering the object to something like <object type="application/x-shockwave-flash" id="swf13316584591" data="https://site.example.com/public/files/movie.swf" width="130" height="130"> ... the movie works fine.

So it's just private file system files... grabbing the file directly from https://site.example.com/system/files/movie.swf works fine.

The difference I notice is that going directly to the public swf href from a browser, the swf plays, whereas going to system/files/movie.swf, the browser attempts to download the file.

lightsurge’s picture

This was related to the hook_file_download in file_aliases.module which was overriding the content-disposition set in filefield.module

http://drupalcode.org/project/file_aliases.git/blob/HEAD:/file_aliases.m...

lightsurge’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -swf tools

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