|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can't figure out why CFFILE 'upload' won't work on a secured eCommerce server. Basic code worked fine on other server, and works in dev. environment; but not on new, secured, production server... Output of action page (once submit the form), aborting before the CFFILE tag actually, since the CF engine won't parse past that tag...
**************************************** C:\WINNT\TEMP\ACF5487.tmp is the 'File Name' passed from form. D:\website\internet\dpw\cons\spats\public\spatsfaq\forms\ is the 'Destination' for upload action. Check: NO (File exists Yes, or no) GetTempDirectory Example The temporary directory for this ColdFusion server is C:\WINNT\TEMP\ Created a temporary file called: C:\WINNT\TEMP\tes5488.tmp ********************** We've tried everything!! Changing 'temp' directory, modifying permissions, changing account CF Service runs under... everything. Ideas? Thanks |
|
#2
|
||||
|
||||
|
Does it give an error message or does it just not upload?
Also, have you tried uploading to this directory while NOT on a secure connection? |
|
#3
|
|||
|
|||
|
Respond to boxmaxima response/questions
Quote:
Yes, gives an error message: "Error in CFFILE tag The form field specified in the CFFILE tag (WHATFILE) does not contain an uploaded file. Please be sure that you have specified the correct form field name.<p>The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (14:1) to (14:103)." Not exactly sure what you mean by 'secure connection'. We're not in 'https' mode at the point where the upload is taking place; it's just that the production server we're running on has all kinds of special security on it, separate VLAN, restricted ACLs on routers, etc. etc. Yes, the code worked fine before we implemented some online payment functionality on the web app of which this feature is a part, and consequently moved the app to a 'secure' server. Thanks - appreciate your response; and any further ideas you have! |
|
#4
|
|||
|
|||
|
Hi - haven't seen the code, but the error doesn't appear to have anything to do with a "secured" server (ie, file I/O permission problems). It looks like the <cffile> tag isn't getting what it needs (a file). Have you confirmed that your submitting <form> has the proper enctype:
<form name="foo" method="post" action="bar.cfm" enctype="multipart/form-data"> And that the field names match up between your submitting and processing pages? If those don't take care of the issue, try posting the submitting and the processing code here so we can take a look at it. |
|
#5
|
|||
|
|||
|
Reply to bfolger71
Quote:
Sure; here's the code: Form page: <FORM action="permitforms_add3.cfm?Action=Add" method="post" enctype="multipart/form-data"> <input type="file" name="WhatFile"> <INPUT type="submit" value="Submit"> Action page: <CFLOCK scope="APPLICATION" type="READONLY" timeout="10"> <cfset serverdirectory="#Application.ROOTPATH#public\spatsfaq\forms\"> </CFLOCK> <cffile destination="#ServerDirectory#" action="upload" nameconflict="makeunique" filefield="WhatFile"> </cfoutput> Thanks |
|
#6
|
|||
|
|||
|
Sorry, misunderstood the question...
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > CFFILE 'upload' doesn't work on secured server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|