How do people usually detect the MIME type of an uploaded file using ASP.NET?
in the aspx page:
<asp:FileUpload ID="FileUpload1" runat="server" />
in the codebehind (c#):
string contentType = FileUpload1.PostedFile.ContentType
2.1m questions
2.1m answers
60 comments
57.0k users