------ art_24125_19913657.1151072682883 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm trying to figure out a way to get the same information that you would from the "content_type" method of the CGI class. The problem is that I want to get this info from a file already in the filesystem locally. For example, using ruby's File.size would give me the same info as an uploaded CGI object's size method. However, the file class' "ftype" method only gives things like "file", "directory", etc whereas CGI "content_type" (what I want) gives things like "image/png". File class: http://www.ruby-doc.org/core/classes/File.html#M000016 CGI class: http://www.ruby-doc.org/stdlib/libdoc/cgi/rdoc/classes/CGI.html -- Respectfully: Larry Diehl ------ art_24125_19913657.1151072682883--