public static string EnforceRequiredExtension(string nameBase, ContentType type)
{
if (type != null)
{
string reqext = type.Extension;
if (!string.IsNullOrEmpty(reqext))
nameBase = EnsureExtension(nameBase, reqext);
}
return nameBase;
}
public static string EnsureExtension(string nameBase, string reqext)