public string ContructOrganizationNameLogo(HttpPostedFileBase upload, string OrganizationName, int OrganizationID,string LangName)
{
var UploadedfileName = Path.GetFileName(upload.FileName);
string type = upload.ContentType;
}
ファイルの拡張子を取得して、ファイルの名前を動的に生成したいのですが、タイプを分割するために使用する1つの方法です。しかし、HttpPostedFileBaseオブジェクトを使用して、拡張機能をクリーンな方法で取得できますか?