ContentType of uploaded/downloaded file?

  •  01-11-2007, 8:39 AM

    ContentType of uploaded/downloaded file?

     
    How can I get the ContentType of the file on upload so that on download I can properly set the ContentType. I notice in your CustomFileProvider on the download page, that the line setting the content type on the Response object is commented. When downloading "uploadable documents", this causes the data to be displayed on the page and rather than IE treating it as a particular file type (.doc, .xls, etc).
     
    Any thoughts?
View Complete Thread