On Nov 7, 2007 10:14 AM, Rick Faircloth <[EMAIL PROTECTED]> wrote: > Thanks everyone, for the help... > > Here's the final solution, if anyone's interested: > > <cffile action="upload" filefield="photo_01_upload" destination="#uppo#" > accept="image/jpg, image/pjpg, image/jpeg, image/pjpeg, image/png" > nameconflict="makeunique"> > <cfset form.photo_01="#file.serverfile#"> > > <cfimage action="resize" height="" width="400" > source="#rppo##file.serverfile#" > destination="#wppp#/#listfirst(file.serverfile, '.')#_w400.jpg" > overwrite="yes"> > <cfimage action="resize" height="" width="100" > source="#rppo##file.serverfile#" > destination="#wppt#/#listfirst(file.serverfile, '.')#_w100.jpg" > overwrite="yes"> >
hi rick: a couple of things: 1) the 'file' scope has been deprecated in favor of 'cffile'. so you should make an effort to reference cffile.serverfile instead of file.serverfile. 2) instead of messing with the list functions, you can use cffile.clientFilename to get the name of the file (without the extension). instead of messing with the list functions, you can use cffile.clientFileExt to get the extension of the file. -- Charlie Griefer ================================================ "...All the world shall be your enemy, Prince with a Thousand Enemies, and whenever they catch you, they will kill you. But first they must catch you, digger, listener, runner, prince with a swift warning. Be cunning and full of tricks and your people shall never be destroyed." ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292858 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4