图片验证
if(type=="JPG"||type=="bmp"||type=="gif")
{
this.File1.PostedFile.SaveAs(Server.MapPath("up")+"\\"+FileName);
this.Image1.ImageUrl="up/"+FileName;
}这里验证图片type=“JPG”上传后缀为小写jpg的时候也是错误格式有没有方法可以不区别大小写??
谢谢。
if(type=="JPG"||type=="bmp"||type=="gif")
{
this.File1.PostedFile.SaveAs(Server.MapPath("up")+"\\"+FileName);
this.Image1.ImageUrl="up/"+FileName;
}这里验证图片type=“JPG”上传后缀为小写jpg的时候也是错误格式有没有方法可以不区别大小写??
谢谢。
{
this.File1.PostedFile.SaveAs(Server.MapPath("up")+"\\"+FileName);
this.Image1.ImageUrl="up/"+FileName;
}