Hey all,
An update on my problem.
The code works just fine in CF5...it fails under CFMX.
I tried remiving the form from the Filefield attribute, making it rfile
instead of form.rfile with no success.
I even tried to dump the Form scope for debugging..and I even get the
same damned error there.
It is really crazy.
Here is the entire page:
<CFINCLUDE template="header.cfm">
<CFIF IsDefined("form.rfile") AND Len(#form.rfile#)>
<!--- Process file upload --->
<CFDUMP var="#form#">
<CFABORT>
<CFFILE action="upload" filefield="rfile"
destination="e:\webs\theenergyguide\resumes\"
nameconflict="makeunique">
<CFIF cffile.filewassaved ><!--- if
cffile.filewassaved is true --->
<!--- Insert data into database
including the new filename for the word document--->
<CFQUERY name="insertresume"
datasource="eguide">
INSERT INTO
tblResume(fname,lname,email,rfile)
VALUES
('#form.fname#','#form.lname#','#form.email#','#cffile.serverfile#')
</CFQUERY>
<CFELSE>
An error occurred while saving your
resume. Please try again
<CFABORT>
</CFIF>
</CFIF>
<div align="center">
<p> </p>
<p> </p>
<p> </p>
<p><strong>Submit Your Resume Here</strong></p>
<table width="75%" border="0">
<tr>
<td>
<form action="postresume.cfm" method="post"
enctype="multipart/form-data" name="postresume" id="postresume">
<table width="80%" border="0"
align="center" cellspacing="5">
<tr>
<td bgcolor="#999999"><strong>First
Name</strong></td>
<td><input name="fname" type="text"
id="fname"></td>
</tr>
<tr>
<td bgcolor="#999999"><strong>Last
Name</strong></td>
<td><input name="lname" type="text"
id="lname"></td>
</tr>
<tr>
<td bgcolor="#999999"><strong>Email
Contact</strong></td>
<td><input name="email" type="text"
id="email"></td>
</tr>
<tr>
<td bgcolor="#999999"><strong>Resume File(Word
doc)</strong></td>
<td><input name="rfile" type="file" ></td>
</tr>
<tr>
<td bgcolor="#999999"> </td>
<td><input type="submit" name="Submit"
value="Submit">
<input type="reset" name="Submit2"
value="Reset"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<p>Please submit your resume as a word document file.</p>
</div>
<CFINCLUDE template="footer.cfm">
--------
THIS code creates this error when the form is submitted
The form field "FILE" did not contain a file.
The Error Occurred in E:\webs\theenergyguide\postresume.cfm: line 9
7 :
8 : <!--- Process file upload --->
9 :
10 : <CFDUMP var="#form#">
11 : <CFABORT>
--------
I'm at a complete loss. I don't see any Dump of the variables.
Why the heck is it throwing this error before I even get to the CFFILE?
IN fact..the error occurs on a line that is EMPTY!
This is just extremely strange.
Any ideas on what could be happening here???
-Gel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.