Re: Get File Content Type

  •  02-13-2009, 8:53 AM

    Re: Get File Content Type

    b-man,
     
    For security reason. Uploader do not provide that property .
     
    You can determine the mimetype from the file extension.
     
    Please check our sample code , Ajax-Uploader\AdvancedCS20-MicrosoftAjax\App_Code\SampleUtill.cs
     
    the static public string GetMimeType(string filename) show you how to get the mimetype of a file.
     
    --
     
    Maybe we can collect all the relation and provide that property by filename, but we would not allow the value from client.
     
    Regards,
    Terry
     
View Complete Thread