62,243
社区成员




string fileContentType = FileUploadId.PostedFile.ContentType; //控件文件类型获取
if (fileContentType != "image/bmp" && fileContentType != "image/gif" && fileContentType != "image/jpeg")
{
ReturnContents = "Error:文件类型不符";
return ReturnContents;
}