public static String DetermineContentType( String fileName )
{
String contentType = GENERIC_CONTENT_TYPE;
int idx = fileName.LastIndexOf( "." );
if (idx != -1)
{
String ext = fileName.Substring( idx );
contentType = GetContentType( ext );
}
return contentType;
}