Hey Dean, Steve's syntax looks to be correct although check That cffile will accept /usr/local/apache/htdocs/mwc/upload_images/photos As a path.. (you also should change to backslashes) I think it has to be a full local path Eg: c:\usr\local\ etc...
Also check that FileExists(Form.upfile) returns true Otherwise the cffile code wont be run. Cheers, Adam Ps.. You could also de-hash some bits of code just for Something to do.. ;) <CFIF trim(Form.upfile) IS NOT "" AND FileExists(Form.upfile)> <CFSET Form.upfile = File.serverFile> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Brandt Sent: Thursday, 13 March 2003 10:48 PM To: CFAussie Mailing List Subject: [cfaussie] File Upload Prob Hi Guys I am trying to uypload a file to a server using this code: <!--- START: UPLOAD FILE SECTION // ---> <!--- If photo is supplied then upload file first ---> <!--- Check to see if a valid file was specified ---> <CFIF #Form.upfile# IS NOT "" AND #FileExists(Form.upfile)#> <!--- Upload Photo File ---> <CFFILE ACTION="UPLOAD" FILEFIELD="#Form.upfile#" FILE="#Form.upfile#" DESTINATION="/usr/local/apache/htdocs/mwc/upload_images/photos" NAMECONFLICT="MAKEUNIQUE" ACCEPT="image/gif, image/jpeg, image/pjpeg"> <CFSET Form.upfile = "#File.serverFile#"> <CFELSE> <CFSET Form.upfile = ""> </CFIF> <!--- END: UPLOAD FILE SECTION // ---> I can test that #form.upfile# xists, and it does But the file never ends up in the destination, nor is any error produced. Any ideas? Thanks Dean Brandt Clever Thinking Consulting Network/Systems Integration, Application Design Melbourne, Australia 0418488885 ...smart networks for smart business --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
