Hi please help me!,
I have been using upl.ContentType successfully for around 3 months on my site with no probs. I use it to get the mime type of the file which must be .mp3
For some unknown reason it's suddenly decided not to recognise .mp3 files and seems to think the files are octet/binary-stream files. I have not changed the code at all now suddenly it's not working. Could it be the browser I use IE 5.5 though that's what I used before.
I can't why it's suddenly turned - for no reason.
This is the code :
strPath=Server.Mappath ("/Upload"
(upl.UserFilename, "\"
+ 1)
FCONT = upl.ContentType
'response.write FCONT
FCONT2=LCase(FCONT)
If FCONT2 = "audio/mpeg" OR FCONT2 ="audio/mp3" OR FCONT2="audio/x-mpg" OR FCONT2="audio/x-mp3" OR FCONT2="audio/x-mpeg" Then
psuedo code SAVE FILE
Else
THIS IS NOT AN MP3 file
End if the boho from soho
I have been using upl.ContentType successfully for around 3 months on my site with no probs. I use it to get the mime type of the file which must be .mp3
For some unknown reason it's suddenly decided not to recognise .mp3 files and seems to think the files are octet/binary-stream files. I have not changed the code at all now suddenly it's not working. Could it be the browser I use IE 5.5 though that's what I used before.
I can't why it's suddenly turned - for no reason.
This is the code :
strPath=Server.Mappath ("/Upload"
(upl.UserFilename, "\"
FCONT = upl.ContentType
'response.write FCONT
FCONT2=LCase(FCONT)
If FCONT2 = "audio/mpeg" OR FCONT2 ="audio/mp3" OR FCONT2="audio/x-mpg" OR FCONT2="audio/x-mp3" OR FCONT2="audio/x-mpeg" Then
psuedo code SAVE FILE
Else
THIS IS NOT AN MP3 file
End if the boho from soho