What concerns me is if this method is open to abuse or tampering. ColdFusion does not know the size of a file until it has been uploaded so caution is necessary. It is possible to bring a CF server to its knees if it runs out of disk space. A good reason to host sites on a separate partition to the server itself.
And check that if a file exceeds a certain size delete it immediately. I haven't done much file upping with CFMX (6.1) but I hear it is much better than earlier versions - but still dependant on server memory. So test test test so you are not caught out. And my mum keeps ringing and breaking my concentration so apologies if I've lost the plot already. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Onnis Sent: Sunday, 1 February 2004 2:23 PM To: CFAussie Mailing List Subject: [cfaussie] RE: cf equivalent of vbyesno You wouldnt be able to do the same thing here peter Because for the confirmation type of prompt your after you would have to use a javascript confirm prompt, but that would have to happen before the file gets uplodaed. What you are better off doing is uploaded the file to a holding area, then checking to see if the file exists. If it does then display a HTML form to the user with the "This file already exists. Do you want to overwrite it?" message with a "YES" and "NO" button. Then depending on what they click, perform the action to either copy the uploaded file to the desired location overwriting the existing file, or deleting it if they dont want to overwrite it. The good this about this method is that you could also display to the user a text box with an option to give the file a new name and then copy it to where its suposed to go so the user doe not have to upload it again. Regards Steve Onnis -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Mount Sent: Sunday, 1 February 2004 3:23 PM To: CFAussie Mailing List Subject: [cfaussie] cf equivalent of vbyesno Hi I'm just getting used to <cffile> (in this case with action="upload") and I just want to do a user confirmation screen to see whether or not the user wants to overwrite and existing file in the upload directory. In Visual Basic 6 I'd use vbyesno in the if statement. Is there something similar in ColdFusion? Thanks Peter Mount [EMAIL PROTECTED] PS: for people who know me, I was succesful in getting into RMIT. I'll be studying part time to finish my Diploma in IT there. --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004 --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia http://www.mxdu.com/ + 24-25 February, 2004
