Thanks for the help! Here's my CFFILE function: <cffile action = "upload" filefield = "form.embarkFile" destination = "#application.physpath#data\" nameconflict = "overwrite" accept = "text/plain" attributes = "Normal" />
The #application.physpath# is declared as #getdirectoryfrompath(expandpath('*.*'))# in the application.cfc. The form.embarkFile is uploaded in the self-posting form. So between the destination and fileField, the CFFILE should be okay... right? Thanks for the help!! I really appreciate it! Mike -----Original Message----- From: Rick Root [mailto:rick.r...@webworksllc.com] Sent: Monday, July 20, 2009 9:56 AM To: cf-talk Subject: Re: getDirectoryFromPath Question On Mon, Jul 20, 2009 at 9:23 AM, Hunsaker, Michael Scott<mhuns...@indiana.edu> wrote: > > #getdirectoryfrompath(expandpath('*.*'))# > > That returns the same thing. However, when I use the function above as the > "destination" in the CFFILE function, it returns an error. The error says: > > "The value of the attribute destination, which is currently > G:\Inetpub\wwwroot\, is invalid." > > For some reason it adds a comma at the end of the physical path but I can't > figure out why. Any ideas? I would appreciate any help. What others said, the comma is part of the error message, not the value. Can we see the full CFFILE? You probably need a filename there, not a directory path. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324727 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4