Forums / General / Uppercase filetype extenstions..
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
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]
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