public static IsImage ( string contentType ) : bool | ||
contentType | string | |
return | bool |
public static bool IsImage(string contentType)
{
return contentType == "image/jpeg" || contentType == "image/gif" || contentType == "image/png";
}