2017-04-19 97 views

回答

0

嘗試識別文件的MIME。換句話說,內容類型:

string contentType = flFile.PostedFile.ContentType; 
if("video/mp4" == contentType.ToLower()){ 
    //its video 
}else if("audio/mp4" == contentType.ToLower()){ 
    //its audio 
} 
相關問題