I think I got it now -----Original Message----- From: Joe Rinehart [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 4:32 PM To: CF-Talk Subject: Re: Passing variable in cffile
Hi Eric, Using "#updir#\small" is fine, unless you're on a Unix box, in which case you'd want "#updir#/small". The most likely reason for the error is that the "C:\CFusionMX\wwwroot\portplus\images\2" directory doesn't exist....I imagine you made "..\images" by hand, but if the "2" is a variable specific to this image, or a page, or something like that, you'll need to use CFDIRECTORY to create it before storing the file in it. Cheers, Joe On Tue, 14 Dec 2004 17:11:09 -0500, dave <[EMAIL PROTECTED]> wrote: > is the problem on your local server or the live server? > > remember the path will be different between the 2 and i usually have both in > the application page but comment 1 out depending on if its live or local > > also > destination="#updir#\small\" > > should be > destination="#updir#/small/" > > on the live server > > ---------- Original Message ---------------------------------- > From: "Eric Creese" <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > Date: Tue, 14 Dec 2004 15:55:46 -0600 > > >trying to pass a vaiable intot the destination field of CFFILE tag and it > >pukes. I always thought this could be done? I keep getting an error. > > > >Attribute validation error for tag CFFILE. > >The value of the attribute destination, which is currently > >"C:\CFusionMX\wwwroot\portplus\images\2\small\", is invalid. The error > >occurred in C:\CFusionMX\wwwroot\portplus\x_admin_edit2.cfm: line 49 > >47 : <cffile action="upload" > >48 : destination="#updir#\small\" > >49 : nameconflict="makeunique" > >50 : filefield="himage" > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187663 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

