Forums / Setup & design / Add Media files types.

Add Media files types.

Author Message

Daniel Guerrier

Monday 18 July 2005 11:52:26 am

Hello,

I am trying to configure ez to serve .flv video files.
It will not serve the file with the correct mime type after editing the apache conf. A also can't access the file from cache directly from the browser.

How do I enable ez to serve the file as it would any other file such as jpeg with the specified mime type.
Also, is it possible to add it as a media type in ez when creating a content class.

Thx

Daniel Guerrier

Monday 18 July 2005 7:57:53 pm

what I'm trying to do is load the .flv dynamically into a flash file. I created an xml doc that has the direct path to the file but ez does not allow access to it and defaults to the index page.

Luc Chase

Tuesday 19 July 2005 11:12:33 am

Daniel,
have you checked that your Apache RewriteRules are not part of the problem?

The Web Application Service Provider

Daniel Guerrier

Wednesday 20 July 2005 7:03:50 am

Not sure, it is currently set to what is in the install doc.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule !(((^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf))|^/extension/phpadsnew/phpadsnew/.*)$ /index.php
</IfModule>

Daniel Guerrier

Wednesday 20 July 2005 7:07:13 am

Ok, that was it.
I needed to specify the flv extension

so this
RewriteRule !(((^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf))|^/extension/phpadsnew/phpadsnew/.*)$ /index.php

becomes this
RewriteRule !(((^/design|^/var/.*/storage|^/var/storage|^/var/.*/cache|^/var/cache|^/extension/.*/design|^/kernel/setup/packages|^/packages|^/share/icons).*\.(gif|css|jpg|png|jar|js|ico|pdf|swf|flv))|^/extension/phpadsnew/phpadsnew/.*)$ /index.php

notice the flv extension added near the end.