Peter T CFMX no longer uses that method for making file names unique
now if you upload "myFile.doc" and it needs to make it uniquie, it renames it as "myFile1.doc" If youupload the same file 5 times you would have "myFile11111.doc" pretty average i know but what can you do apart from rename it yourself Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Tilbrook Sent: Sunday, 1 February 2004 2:32 PM To: CFAussie Mailing List Subject: [cfaussie] RE: cf equivalent of vbyesno Interesting question. Pete, unless the unique filename is essential to the application (or server storage space is limited) you can use the "makeunique" attribute to negate this. CF will make up a screwey random but 8x3 filename for you instead (eg: FILENAME.JPG) which is at least MS-DOS compliant. That is under Windows - not sure if Unix/Linux flavours do the same thing. If you want the user to confirm they want to overwrite an existing file you would need to first determine whether the filename already exists on the server. If the user is restricted to a specific filename (eg: username.txt) then it would be a simple matter of allowing the user to "confirm" the over writing of their current username.txt file. CF has powerful file handling abilities but, with any server-side file handling, if permitted at all should be done with extremem caution and tested tested tested. Hope that helps. -- Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA "Why would you ever want more than 640k of memory?" William Henry Gates III Telephone: +61-2-6284-2727 Mobile: +61-0439-401-823 E-mail: [EMAIL PROTECTED] World Wide Web: http:/www.coldgen.com/ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 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
