Forums / General / Flash file is not found

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 ezPublish, 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

eZ debug

Timing: Jan 31 2025 06:18:34
Script start
Timing: Jan 31 2025 06:18:34
Module start 'content'
Timing: Jan 31 2025 06:18:34
Module end 'content'
Timing: Jan 31 2025 06:18:34
Script end

Main resources:

Total runtime0.1994 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.8203180.8516
Module start 'content' 0.00490.0035 768.6719105.9297
Module end 'content' 0.00840.1909 874.6016530.4844
Script end 0.1993  1,405.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00281.3895200.0001
Check MTime0.00110.5703200.0001
Mysql Total
Database connection0.00070.347010.0007
Mysqli_queries0.160580.48861410.0011
Looping result0.00100.50351390.0000
Template Total0.190695.610.1906
Template load0.00070.347610.0007
Template processing0.189995.250210.1899
Override
Cache load0.00050.258910.0005
Sytem overhead
Fetch class attribute can translate value0.00060.320010.0006
XML
Image XML parsing0.00030.127810.0003
General
dbfile0.00582.8986200.0003
String conversion0.00000.001630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs