Web Hosting Talk







View Full Version : ASP Code with NetScape Problem


Discusman
03-20-2005, 09:15 PM
I am experiencing problems with ASP and NetScape.

The problem only occur when I am using NetScape.

Here is the IF statement in my ASP code:

If (strFileType="image/pjpeg") and (cInt(strFileSize<"999999")) Then
Do A

Else

Do B

End If

I uploaded a .jpg file and file size is less than 90kb and the code wouldn't let me upload. The code would bring me right to "Do B"
It seems the IF statement isn't working properly.

Again, everything works fine when I'm using IE..

I'm using NetScape 7.2 which it is the latest version of NetScape.

Could anyone help? Thanks.

jimpoz
03-21-2005, 09:58 PM
Before the if statement do

response.write "strFileType: " & strFileType
response.write "<BR>strFileSize: " & strFileSize

Maybe NS is uploading the image with a different mime type.

Discusman
03-22-2005, 09:06 AM
yes, thanks for your help.

You are correct. Netscape gives me "jpeg" and IE gives me "pjpeg"

no wonder... LOL:stickout: