Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFILE makeUnique Error

Status
Not open for further replies.

jefegrande

Programmer
Apr 3, 2006
4
US
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.
 
Never seen this before either. I would have said it was security related, but because it works sometimes then that rules out permissions.

Have you tried rebooting the machine? If not, give it a try as it sometimes sorts out some of the weird errors that CF throws every now and again.

Hope this helps

Wullie

Fresh Look - Quality Coldfusion 7/Windows Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Hmm ... i'm using a similar script to this and your code syntax looks correct, my guess would be with the other guys on this one, it does sound like a permissions related issue, somthing to do with allowing CF to modify files as they are uploaded.

Rob
 
Nothing in the server logs. I'll talk to the networking folks again. Maybe someone changed something on the server. I'd like to thank everyone for the assist. If I find the answer I'll post it to this thread.
Again, thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top