FortySix&2
n00b
- Joined
- Mar 29, 2004
- Messages
- 51
Whats up everybody. I am working on a site that has a online application for employment in coldfusion. It basically is a form that generates an htm file and then in turn emails it to the appropriate rep. I have the email functionality working however when I added the code to begin a session to remember input. I get the following error. If I remove the session generation it works fine. The error complains about the cffile tag used to generate the application.
Here is the code:
And the error:
Not quite sure why it is throwing the error. Any help is appreciated.
Here is the code:
Code:
<cffile action="write" file="#expandpath(app_directory)#Application for #form.name_first# #form.name_last#.htm" output="#application#">
<!--- Save resume if one is submitted --->
<cfif isDefined("resume_upload") AND resume_upload neq ''>
<cffile action="upload" filefield="form.resume_upload" destination="#expandpath(app_directory)#" nameconflict="OVERWRITE">
<cfset FileName = '#serverFileName#'>
<cfset FileFormat = '#serverFileExt#'>
<cffile action="rename" source="#expandpath(app_directory)##FileName#.#FileFormat#" destination="#expandpath(app_directory)#Resume for #form.name_first# #form.name_last#.#FileFormat#" >
</cfif>
And the error:
Not quite sure why it is throwing the error. Any help is appreciated.