What I might do is use a cffile action="upload" nameconflict="makeunique"
Whatever filename the image gets stored under will be available in cffile.serverfile (filename), cffile.serverfilename (filename w/o extension) and cffile.serverext (extension, no period) >From there, you can use cffile action="rename" to rename the image to fit your naming convention. HTH Matt Osbun Web Developer Health Systems, International -----Original Message----- From: Torrent Girl [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 9:05 AM To: CF-Newbie Subject: CFFILE Hello All. I am creating an application that will allow users to upload images. I would like to upload each file into one "filedirectory" BUT I'd like the files named in a specific way. For instance, a user logs in and uploads a file. I'd like the file name to be: userID/lname/shortdescriptionoffile/ext of the uploaded file. What is the best way for me to do this? I know I have certain file vars available to me like cffile.clientfile, but these appear to be available only after the file upload. Any help or tuts would be appreciated. Tgirl CONFIDENTIALITY NOTICE: The information contained in this transmission, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure, or distribution is prohibited by Federal law. If you are not the intended recipient of this message, you are notified that you may not disclose, print, copy, or disseminate this information. If you have received this transmission in error, please reply to the sender and delete or destroy the message. Unauthorized interception of this transmission may be a violation of criminal law. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Flash for programmers - Flash MX Pro http://www.houseoffusion.com/banners/view.cfm?bannerid=56 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1389 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
