Dean,
I have never actually scoped the filefield form variable in the cffile
tag before... The fact that it is a form variable is a given I think...
Try:
<CFFILE ACTION="UPLOAD"
FILEFIELD="upfile"
DESTINATION="/usr/local/apache/htdocs/mwc/upload_images/photos"
NAMECONFLICT="MAKEUNIQUE"
ACCEPT="image/gif, image/jpeg, image/pjpeg">
I have also got rid of the "File" attribute here.
Steve
-----Original Message-----
From: Dean Brandt [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 March 2003 10:56 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: File Upload Prob
Hi Steve,
Same symptoms, no error and no file uploaded......
Thanks for the tip anyway
Dean Brandt
Clever Thinking Consulting
Network/Systems Integration,
Application Design
Melbourne, Australia
0418488885
...smart networks for smart business
-----Original Message-----
From: Steve Onnis [mailto:[EMAIL PROTECTED]
Sent: Thursday, 13 March 2003 10:48 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: File Upload Prob
Dean
the code should be
<CFFILE ACTION="UPLOAD"
FILEFIELD="Form.upfile"
DESTINATION="/usr/local/apache/htdocs/mwc/upload_images/photos"
NAMECONFLICT="MAKEUNIQUE"
ACCEPT="image/gif, image/jpeg, image/pjpeg">
Steve
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 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/
---
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/