Forums / General / Flash file is not found

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Flash file is not found

Author Message

Bernhard Reiter

Wednesday 02 March 2005 8:04:10 am

Hi,
My problem is the following:
i have an flash class similar to the one in the demo, but then i upload an file i cant find it later. So if i trie to view it just blank white box.
The file seems to get uploaded as it is in var/storage (just has another name).
the url of the file looks something like this: /selby/content/download/95/407/ez.swf

ez version: 3.5.1

Thanks in advance

Łukasz Serwatka

Wednesday 02 March 2005 10:23:15 pm

Hi Bernhard,

Could you show part of your code used to view flash file and the output?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bernhard Reiter

Thursday 03 March 2005 12:40:17 am

thats the important part of the flash full view template:

    <div class="content-media">
    {let attribute=$node.object.data_map.file}
        <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
                {section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} id="objectid{$node.object.id}">

        <param name="movie" value={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} />
        <param name="quality" value="{$attribute.content.quality}" />
        <param name="play" value="{section show=$attribute.content.is_autoplay}true{/section}" />
        <param name="loop" value="{section show=$attribute.content.is_loop}true{/section}" />
        <embed src={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl}
               quality="{$attribute.content.quality}" pluginspage="{$attribute.content.pluginspage}"
               {section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} play="{section show=$attribute.content.is_autoplay}true{/section}"
               loop="{section show=$attribute.content.is_loop}true{/section}" name="objectid{$node.object.id}">
        </embed>
        </object>
    {/let}
    </div>

and thats the output:

<div class="content-media">

            <object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
                  id="objectid95">

        <param name="movie" value="/selby/content/download/95/407/ez.swf" />
        <param name="quality" value="high" />
        <param name="play" value="" />
        <param name="loop" value="" />
        <embed src="/selby/content/download/95/407/ez.swf"
               quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
                 play=""
               loop="" name="objectid95">
        </embed>
        </object>

        </div>

Łukasz Serwatka

Thursday 03 March 2005 1:09:49 am

This code should work. I hope ;-)

    {let attribute=$node.object.data_map.file}
<object codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" 
		{section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section} id="objectid{$node.object.id}">
  <param name="movie" value={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} />
  <param name="quality" value="{$attribute.content.quality}" />
  <embed src={concat("content/download/",$attribute.contentobject_id,"/",$attribute.content.contentobject_attribute_id,"/",$attribute.content.original_filename)|ezurl} quality="{$attribute.content.quality}" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" 
{section show=$attribute.content.width|gt( 0 )}width="{$attribute.content.width}"{/section} {section show=$attribute.content.height|gt( 0 )}height="{$attribute.content.height}"{/section}></embed>
</object>
    {/let}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bernhard Reiter

Thursday 03 March 2005 1:26:12 am

This does not wok either.

Could it be that the path to the flash file is wrong? if i enter it into my browser it says content modulke not found.

Its the first time i work with Exponential, so please be patient ;-)

Bernhard Reiter

Thursday 03 March 2005 1:29:14 am

Sorry i was wrong the url is wright. i entered it again and a download window poped up.

Bernhard Reiter

Thursday 03 March 2005 1:31:29 am

Ahh now it works.
i just stripped of the filename form the url ($attribute.content.original_filename), and now the movie plays!

Łukasz Serwatka

Thursday 03 March 2005 1:33:28 am

Bernhard, It`s good to see that it works ;-)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog