- public string ContructOrganizationNamelogo(HttpPostedFileBase upload,string OrganizationName,int OrganizationID,string LangName)
- {
- var UploadedfileName = Path.GetFileName(upload.FileName);
- string type = upload.ContentType;
- }
我想得到文件的扩展名动态生成文件的名称。一种方式,我将使用拆分类型。但是我可以使用HttpPostedFileBase对象来获得扩展以干净的方式吗?