Put the file then rename it. You don't actually have to find the file, so it's two steps. I don't think there's anyway to do a rename on save.
On 7/27/05, Les Mizzell <[EMAIL PROTECTED]> wrote: > <!--- Get the file and put it on the server ---> > <cffile action="UPLOAD" > destination="C:\Inetpub\hostroot\somewhere..." > filefield="myfile"> > > <!---Get the file name for the database ---> > <cfset fileNAME ="#cffile.serverfile#"> > > > I've got no problem uploading a file like above (ignoring all the > options above for brevity), but I need to: > > a. rename each file to a specific name (matches a project number) > b. maintain the file type extension (could be any number of things) > c. get it out on the server > d. write the new name to the database > > So, I *could* put the file, then go find it and rename it, but that > seems too many steps. What's the best way to get this done? > > > -- > ----------- > Les Mizzell > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213057 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

