Forums / Developer / Urls Content/download in a object tag don't work

Urls Content/download in a object tag don't work

Author Message

Sébastien Morel

Friday 14 September 2007 6:04:39 am

Hello,

I have a instance of eZ in cluster mode, so my images served with the index_cluster.php.
All work fine.

But, In a particular template, I had this code :

$object.data_map.flash.content.filepath|ezroot

This code put in the data attribute of an object tag and param tag work. eZ generated this source :

/var/xxxx/storage/original/application/9101c9985b7a0ffd1944e1aa82f070bf.swf

And the browser served correctly the flash.

But, with the cluster mode, the link to /var/xxxx/storage/original is not redirect to index_cluster.php (reserved for the content image).

So I changed the code with :

concat("content/download/",$object.data_map.flash.contentobject_id,"/",$object.data_map.flash.id,"/file/",$object.data_map.flash.content.original_filename)|ezurl}

The source generated by eZ is in this case :

content/download/6450/156032/file/flashxxx.swf

In this case, the swf is correctly served by the index.php (as the clustering is configured) but the browser don't served the flash ( only IE works correctly)
This code works only with Internet Explorer, not with Firefox

<object width="200" height="170" data="/content/download/6450/156032/file/flashxxx.swf" type="application/x-shockwave-flash">
		<param value="/content/download/6450/156032/file/flashxxx.swf" name="movie"/>
		<param name="quality" value="high"/>
		<param name="scale" value="exactfit"/>
		<param name="wmode" value="transparent"/>
		<param name="salign" value="t"/>
</object>

Maybe because the content/download path give several download headers ?

How to do that correctly with the clustering mode ?
Because I temporarily had a new RewriteRule :

Rewriterule ^/var/([^/]+/)?storage/original/.*          /index_cluster.php  [L]

But I don't think is a very good solution

Someone can help me ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Tuesday 18 September 2007 1:12:03 am

Anyone ?

My explanation is comprehensible?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

André R.

Tuesday 18 September 2007 1:47:34 am

I would suggest posting this in the issue tracker instead, since not to many forum members are on the cluster setup and those who are don't seems to do flash like this (since no one is responding).

PS: It would speed up the process if you also have a solution (patch) for it.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sébastien Morel

Tuesday 18 September 2007 2:09:40 am

Ok I posted in the issue tracker :
http://issues.ez.no/IssueView.php?Id=11458&activeItem=1

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Sébastien Morel

Wednesday 03 October 2007 5:49:11 am

Anyone for this bug?

I'm not sure that it's a "bug" eZ, but how do that with the cluster mode ?

Thanks

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

Nicolas Pastorino

Wednesday 03 October 2007 8:25:09 am

new comment here : http://issues.ez.no/IssueView.php?Id=11458&

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye