Can you post your error as its looks fine I am guessing it's something with the path and wether the user cf is running as has permission to write to the location?
I ran the same code on windows and it worked. Paul. -----Original Message----- From: John Barrett [mailto:[EMAIL PROTECTED] Sent: Wednesday, 6 August 2008 3:20 PM To: CF-Newbie Subject: Re: writing multi queries? Hi Paul, Thanks for getting back to me. Can I ask is there something wrong here with cffile. I am trying this way first as I think that it will be easier than writing to the db. <cfif isDefined("fileUpload")> <cffile action="upload" fileField="fileUpload" destination="/home/httpd/vhosts/cfhawaii.com/httpdocs/ GotNutrients/Files"> <p>Thank you, your file has been uploaded.</p> </cfif> <cfform enctype="multipart/form-data" method="post"> <cfinput type="file" name="fileUpload" /><br /> <cfinput type="Submit" name="Upload File" value="Upload File"> </cfform> On Aug 5, 2008, at 5:10 PM, Paul Kukiel wrote: > Hi John, > > As Greg and yourself have mentioned that is basically what you > would do. > Upload a file, read it in with cffile, loop over the csv rows > inserting the > data to the db. > > Regards, > > Paul Kukiel > > -----Original Message----- > From: John Barrett [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 6 August 2008 1:04 PM > To: CF-Newbie > Subject: Re: writing multi queries? > > Hi Greg, > Thanks so much for getting back to me. > I will have to look into how to create this. I think that I can > figure out how to have an upload box for the form, then I think that > I would just use a cfloop for the records?? > > Thanks for your help, at least now I know that this can be done. > I will let you know later today how this goes. > Thanks again, > John > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3895 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
