how website check the file uploaded by user is image or not. i want to do this in asp.net mvc c#
How to mask tilde (~) character in C# MVC routing table?
1:Using ASP.NET Automatically login to an external website and redirect
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).. ASP NET MVC custom route fallbackLinq to SQL and Realtime Data