how website check that a upload stuff is images or not
how website check the file uploaded by user is image or not. i want to do this开发者_开发知识库 in asp.net mvc c#
pass the file contents into a Bitmap object (using the ctor with Stream parameter), and if the constructor throws an ArgumentException, it's not an image (for popular image formats, mind you).
精彩评论