Forums / Developer / Problem with a flash

Problem with a flash

Author Message

Anthony M.

Friday 07 November 2008 1:50:35 am

Hi,

i've loaded a flash in my xml block but it doesn't appear on the web site... (tested width flash player 9 on Firefox 2 and 10 on IE7)
can you help me please ?

when i look at the source code, the url for a picture is :

"/var/my_siteaccess/storage/images/media/images/test/affiche1/16845-1-fre-FR/affiche1.jpg" 

and for a flash, it's like that :

"/my_siteaccess/content/download/2823/14785/test.swf"

Why there is this difference ?

Thanks a lot.

Anthony

Grégory BECUE

Thursday 20 November 2008 9:35:22 am

Hi Anthony,

I think it's not the same treatment for an image in a text and for a swf file. I think it's the same result with a file (make the test, but i think i'll obtain a .../content/download/ url).

For the swf file, eZ use a download template / i have the same case with a file. Perhaps, you must to override this template.

Greg

Pascal Specht

Friday 21 November 2008 4:44:28 am

Hi!

there's an issue starting with release 10.0.2 of the Adobe Flash plugin: maybe you're victim of this issue:

http://issues.ez.no/13783

</Pascal>

Original Adobe response:

<i>
Content-Disposition header may prevent SWF files from playing

Some HTTP servers sometimes send a response header that looks like this:

Content-Disposition: attachment

The purpose of this response header is to indicate to client software (browsers, Flash Player, e-mail clients, etc.) that the file being returned should not be rendered inline as active content. For example, imagine you're reading e-mail messages on a web-based service and you click a link that represents a file attached to a message. The server may well respond with "Content-Disposition: attachment"—meaning, "Hey, browser, don't open this file. Save it to disk instead." This header can sometimes serve a security purpose: If a server provides files that were uploaded by untrusted users, the "Content-Disposition: attachment" header can help prevent those files from being executed in the server's domain.

Starting with version 10,0,2, if Flash Player sees a "Content-Disposition: attachment" header while downloading a SWF file, it will ignore the SWF file rather than play it. Note that this restriction applies only to SWF files and not to other types of content, such as images, sounds, text, or XML files, policy files, etc.
</i>

Marko Žmak

Thursday 27 November 2008 1:56:10 am

Any prediction when will this be fixed in version 3 of eZP?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth