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.