file types of reponse.

Select Case lcase(Right(flName, 4))
Case 
".asf"
ContentType = "video/x-ms-asf"
Case ".avi"
ContentType = "video/avi"
Case ".doc"
ContentType = "application/msword"
Case ".zip"
ContentType = "application/zip"
Case ".xls"
ContentType = "application/vnd.ms-excel"
Case ".gif"
ContentType = "image/gif"
Case ".jpg""jpeg"
ContentType = "image/jpeg"
Case ".wav"
ContentType = "audio/wav"
Case ".mp3"
ContentType = "audio/mpeg3"
Case ".mpg""mpeg"
ContentType = "video/mpeg"
Case ".rtf"
ContentType = "application/rtf"
Case ".htm""html"
ContentType = "text/html"
Case ".txt"
ContentType = "text/plain"
Case Else
ContentType = 
"application/octet-stream"
End Select


 
posted @ 2005-05-20 13:13  23热爱,自学业余码农。  阅读(252)  评论(0)    收藏  举报