jefegrande
Programmer
I have inherited an application that allows users to upload a file to the server. It has been running for over 2 1/2 years with no problem. Now, when a user attempts to upload a file with a duplicate name to the directory the CF Server throws an error. If they upload a file with an original name it runs fine. The code has not been changed.
Here's the cffile
<cfif FORM.filename IS NOT "">
<CFFILE ACTION="UPLOAD"
FILEFIELD="filename"
DESTINATION= "E:\myDirectory\documents\"
nameconflict="MAKEUNIQUE">
<cfset file = FILE.serverfile>
</CFIF>
Here is the error:
Error processing CFFILE Error attempting to generate temporary file name for directory 'E:\myDirectory\documents\'.Error: All or part of the path is invalid.The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (244:2) to (247:29) in the template file e:\inetpub\
The directory has over 7000 documents and is 285mb in size. The CF Server is 5.0 running on a Windows 2000 box.
Any ideas are greatly appreciated.
Here's the cffile
<cfif FORM.filename IS NOT "">
<CFFILE ACTION="UPLOAD"
FILEFIELD="filename"
DESTINATION= "E:\myDirectory\documents\"
nameconflict="MAKEUNIQUE">
<cfset file = FILE.serverfile>
</CFIF>
Here is the error:
Error processing CFFILE Error attempting to generate temporary file name for directory 'E:\myDirectory\documents\'.Error: All or part of the path is invalid.The error occurred while processing an element with a general identifier of (CFFILE), occupying document position (244:2) to (247:29) in the template file e:\inetpub\
The directory has over 7000 documents and is 285mb in size. The CF Server is 5.0 running on a Windows 2000 box.
Any ideas are greatly appreciated.