The problem is only occurring in the development environment. The code works fine on another server and it hadn't been changed before the error started to happen.
CF ProductName: ColdFusion Server
CF ProductLevel: Enterprise
CF ProductVersion: 6,1,0,63958
CF AppServer: JRun4
OS Name: Windows 2000
OS Version: 5.0
----- Original Message -----
From: Eric Creese
To: CF-Talk
Sent: Saturday, January 17, 2004 9:26 AM
Subject: CFFILE error
I have this routine to let users upload a photo to my server. I used to just accept gif's , now I allow for .jpgs so I add them to the accept field. Now my script bombs. loading any type of file. Here is my code.
<cftry>
<cffile action=""> destination="c:\ixxxxx\uploads\"
nameconflict="makeunique"
filefield="image"
accept="image/gif,image/jpg,image/jpeg">
<cfcatch type="any">
<SCRIPT>
alert("Sorry! the image was not a .gif, or .jpg image type");
self.location ='image.cfm';
</SCRIPT>
</cfcatch>
</cftry>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]