Uppercase filetype extenstions..

Author Message

Håvard Bergersen

Monday 10 May 2010 1:12:16 am

When trying to import a image (image attribute) in ez 4.3 I get an error saying that the image is not a valid fileformat.

The problem occurs when trying to import .jpg or .png images that has the filetype extensions written with uppercase letters. .JPG or .PNG.

Does somebody know how to fix this? Is it a bug in 4.3?

I have never had this problem before...

Robin Muilwijk

Monday 10 May 2010 2:07:36 am

Hi Havard,

Did you try the suggestion I posted on twitter? Adding the [NC] at the end of the line where the file extensions are mentioned in the rewriterule of the htaccess file? [NC] makes it case insensitive.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Håvard Bergersen

Monday 10 May 2010 2:34:36 am

So what would that line look like then?

Something like this? :)

 RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php - [NC] 

Robin Muilwijk

Monday 10 May 2010 2:37:40 am

Yep, no idea if that works, but worth the try since it can be tested in a minute.

-- Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

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 02:21:03
Script start
Timing: Jan 18 2025 02:21:03
Module start 'layout'
Timing: Jan 18 2025 02:21:03
Module start 'content'
Timing: Jan 18 2025 02:21:04
Module end 'content'
Timing: Jan 18 2025 02:21:04
Script end

Main resources:

Total runtime0.6021 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9063152.6250
Module start 'layout' 0.00520.0024 740.531339.4453
Module start 'content' 0.00750.5927 779.9766555.8516
Module end 'content' 0.60020.0018 1,335.828112.1563
Script end 0.6020  1,347.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5546160.0002
Check MTime0.00150.2491160.0001
Mysql Total
Database connection0.00070.117610.0007
Mysqli_queries0.546290.7158600.0091
Looping result0.00060.1025580.0000
Template Total0.572895.120.2864
Template load0.00200.337820.0010
Template processing0.570794.788220.2854
Template load and register function0.00010.021410.0001
states
state_id_array0.00120.205810.0012
state_identifier_array0.00110.176420.0005
Override
Cache load0.00160.2716220.0001
Sytem overhead
Fetch class attribute can translate value0.00080.130220.0004
Fetch class attribute name0.00130.223960.0002
XML
Image XML parsing0.00160.271220.0008
class_abstraction
Instantiating content class attribute0.00000.004680.0000
General
dbfile0.00090.1502240.0000
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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs