XML file upload thr' admin

Author Message

Anaya P

Tuesday 08 June 2010 5:09:56 am

Hi Guys,

I need your advice on the problem I have in uploading file through admin.

Background -

I am using swf file which is embedded in a template. SWF is driven by xml file. It uses the values stored between xml tags. Passing xml file path using flashvars in html like ( this code is in template where swf is embedded. 'node_id' is an id of xml file object)

{def $myFileObject = fetch( 'content', 'node', hash( 'node_id', 569))}
{def $myFileURL = $myFileObject.data_map.file.content.filepath}

<param name="FlashVars" value="xmlPath=http://domainname/{$myFileURL}" />

SWF file is stored at location var\ezflow_site\storage\.....

As you notice in above code, XML file path is passed through admin. Have created class which has 'file' type attribute in it where user can upload the file.

Problem -

When I upload xml file through admin, I can not see that file at location var/ezflow_site/storage/.... Can get path of the file in a template by using $myFileURL.

But when checkbox for display subitems is checked and if i click on the file in a website, that file immediately appears at var/ezflow_site/storage location.

So I really do not know why file is not appearing at var/exflow_site/..... location immediately after uploading it in admin? Is it cache problem?

Or is there any other solution to achieve this?

Thanks for your time !!

Regards

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 06:15:35
Script start
Timing: Jan 19 2025 06:15:35
Module start 'layout'
Timing: Jan 19 2025 06:15:35
Module start 'content'
Timing: Jan 19 2025 06:15:36
Module end 'content'
Timing: Jan 19 2025 06:15:36
Script end

Main resources:

Total runtime0.9667 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 590.2891152.6250
Module start 'layout' 0.00570.0035 742.914139.4453
Module start 'content' 0.00920.9564 782.3594406.5000
Module end 'content' 0.96560.0011 1,188.85948.1641
Script end 0.9667  1,197.0234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3244160.0002
Check MTime0.00130.1301160.0001
Mysql Total
Database connection0.00090.094410.0009
Mysqli_queries0.924095.5788460.0201
Looping result0.00040.0447440.0000
Template Total0.929996.220.4650
Template load0.00190.192420.0009
Template processing0.928196.000420.4640
Template load and register function0.00030.027510.0003
states
state_id_array0.00150.154810.0015
state_identifier_array0.00140.139920.0007
Override
Cache load0.00150.1580190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.077210.0007
Fetch class attribute name0.00060.059210.0006
XML
Image XML parsing0.00010.013810.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00210.2150100.0002
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs