Content Type of uploaded file

Last post 03-04-2010, 8:01 PM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  03-01-2010, 9:46 AM 59058

    Content Type of uploaded file

    How do i obtain the ContentType of the file(s) being uploaded?
     
    I have examined the parameter of type UploaderEventArgs in the FileUploaded event, but it does not expose this property.
     
    All browsers except firefox are ok with this, but firefox does not lile the contentType to be empty and treats certain files (such as word documents) as XML when the content type is not set.
  •  03-04-2010, 8:01 PM 59189 in reply to 59058

    Re: Content Type of uploaded file

    Hi,
     
    Because the content-type is sent by the browser , so we think it's not safe , so we do not provide that property.
     
    Regards,
    Terry
     
View as RSS news feed in XML