62,074
社区成员
发帖
与我相关
我的任务
分享
string fileContentType = FileUploadId.PostedFile.ContentType; //控件文件类型获取
if (fileContentType != "image/bmp" && fileContentType != "image/gif" && fileContentType != "image/jpeg")
{
ReturnContents = "Error:文件类型不符";
return ReturnContents;
}