Closed (fixed)
Project:
SWF Tools
Version:
6.x-2.5
Component:
SWF Tools
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2009 at 16:48 UTC
Updated:
3 Jan 2014 at 00:29 UTC
Jump to comment: Most recent
Comments
Comment #1
Stuart Greenfield commentedAre you using clean or non-clean urls?
Comment #2
victorburgos commentedClean URLs
Comment #3
lightsurge commentedI'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.
Comment #4
lightsurge commentedThis 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...
Comment #5
lightsurge commented