Part of the EllisLab Network
   
 
Mime by Extension not case sensitive
Posted: 10 July 2008 02:29 PM   [ Ignore ]  
Grad Student
Rank
Total Posts:  55
Joined  01-16-2008

Hi,

I’m not really familiar with the implications of mime-types, but today I found out that the function get_mime_by_extension() doesn’t work with uppercase file extensions. So for now, I first use strtolower() on the filename, which works fine off course.

However I can imagine it would be useful if get_mime_by_extension() would be case insensitive.

Hope that helps. Please correct me if I’m wrong on this topic, though.

Cheers, Michiel

Profile
 
 
Posted: 10 July 2008 08:59 PM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6492
Joined  03-23-2006

I don’t see anything wrong with this suggestion at all.  Thanks.  Let me think on any potential implications, but I see none off the top of my head.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 60711 Total Logged-in Users: 21
Total Topics: 73164 Total Anonymous Users: 1
Total Replies: 394604 Total Guests: 370
Total Posts: 467768    
Members ( View Memberlist )