I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits
a bad file type. I only want to allow them to upload .gif files.
I can use the CFCATCH TYPE="Any" to trap it, but I was hoping that I could
trap specifically for a bad file type.
I noticed that there are a whole slew o
> I would like to trap a CFFILE error using CFTRY/CFCATCH if
> the user submits a bad file type. I only want to allow them
> to upload .gif files.
>
> I can use the CFCATCH TYPE="Any" to trap it, but I was hoping
> that I could trap specifically for a bad file type.
>
> I noticed that there a
extensions.
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 February 2002 7:13 AM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user
submits
a bad file type. I only want to allow them to u
]
..
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:13 PM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user submits
a bad file type. I only want to allow them to upload
> I actually tried outputting the CFCATCH.type, and it just
> gives me an "UNKNOWN". Also, it does not fail silently; it
> generates a CF error page, which is why I was looking to
> trap it.
>
> My ultimate goal was to trap the bad file type error, and
> re-direct back to the calling page ale
betta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:13 PM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user
submits
a bad file type. I only want to allow them to upload .gif files.
I can use the CFCATCH TYPE=&
nc.
410.931.4092
http://www.atnetsolutions.com
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 3:13 PM
To: CF-Talk
Subject: Advanced CFCATCH Exception Types
I would like to trap a CFFILE error using CFTRY/CFCATCH if the user
submits
a bad
ns.length; i++){
alertTxt += extensions[i] + " "
{
}
}return alertTxt
}
//-->
Then use:
Best regards,
Dennis Powers
UXB Internet
(203)879-2844
http://www.uxbinfo.com/
-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February
8 matches
Mail list logo