HttpPostedFile.ContentType Property
.NET Framework (current version)
Gets the MIME content type of a file sent by a client.
Assembly: System.Web (in System.Web.dll)
The following code example shows how to loop through all the files in the uploaded file collection and take action when the MIME type of a file is US-ASCII.
.NET Framework
Available since 1.1
Available since 1.1
Show: