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.

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 18 2025 20:50:13
Script start
Timing: Jan 18 2025 20:50:13
Module start 'layout'
Timing: Jan 18 2025 20:50:13
Module start 'content'
Timing: Jan 18 2025 20:50:14
Module end 'content'
Timing: Jan 18 2025 20:50:14
Script end

Main resources:

Total runtime0.6318 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.0234152.6250
Module start 'layout' 0.00590.0030 741.648439.4453
Module start 'content' 0.00890.6215 781.0938524.3672
Module end 'content' 0.63050.0013 1,305.460912.1719
Script end 0.6317  1,317.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.5105160.0002
Check MTime0.00130.1992160.0001
Mysql Total
Database connection0.00080.132510.0008
Mysqli_queries0.577291.3632630.0092
Looping result0.00060.0909610.0000
Template Total0.588993.220.2944
Template load0.00210.339520.0011
Template processing0.586792.870220.2934
Template load and register function0.00030.040310.0003
states
state_id_array0.00520.828010.0052
state_identifier_array0.00140.222520.0007
Override
Cache load0.00170.2753280.0001
Sytem overhead
Fetch class attribute can translate value0.00050.080820.0003
Fetch class attribute name0.00110.179350.0002
XML
Image XML parsing0.00020.038220.0001
class_abstraction
Instantiating content class attribute0.00000.001550.0000
General
dbfile0.00651.0335100.0007
String conversion0.00000.001740.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/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: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs