How can i get the content type of uploaded files

  •  05-27-2009, 5:58 AM

    How can i get the content type of uploaded files

    hi,

    I am using ajax uploader to upload files in my application. It works fine, but my problem is "How to get the contentType of uploaded files?". Asp.net upload controls has contentType property.
     
    This is important for me since i used it to show the files.
    eg,
     
    Response.ContentType = contentType
    Response.OutputStream.Write(fileContent, 0, fileSize)
     
    Thanks in advance.
    Filed under:
View Complete Thread