<p>How do people usually detect the MIME type of an uploaded file using ASP.NET?</p>

in the aspx page:
```
```
<asp:FileUpload ID="FileUpload1" runat="server" />
```
```
in the codebehind (c#):
```
```
string contentType = FileUpload1.PostedFile.ContentType
```
```