Re: How can i get the content type of uploaded files

  •  05-27-2009, 10:41 PM

    Re: How can i get the content type of uploaded files

    Hi,
     
    The content type is from client and not trust-able.
     
    You can determine the content type from the file extenstion.
     
    Please check our advanced example:
     
    App_Code\SampleUtill.cs
    static public string GetMimeType(string filename)
     
    Regards,
    Terry
     
View Complete Thread