If you are using IIS then the reason is because IIS caches static files.
When the file is cached it is locked for 60 seconds, I think.  So, you would
need to disable the IIS caching (there are articles on how to do this) but
that would degrade overall server performance...

HTH,

Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
===================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
===================================================
Check out inFusion Mail Server - the world's most configurable email server
*** inFusion Authenticator for IIS is now released! (download from
CoolFusion.com) ***
http://www.teletrends.com and http://www.coolfusion.com
Software and utilities for ColdFusion, iHTML, Website, NTMail
Latest versions available from our web site (inFusion Authenticator version
2.0 for WebSite and NTMail is now released)

----- Original Message -----
From: Todd Ashworth <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 05, 2000 2:04 PM
Subject: CFFILE .. access denied.


> I am uploading a file using CFFILE that can then be immediately viewed on
a
> web page.  The steps I am taking are:
>
> 1. Check for occurances of an old file with the same name
> 2. If found, delete it
> 3. Upload the new file to a temp directory
> 4. Move the file from the temp directory to the production directory and
> rename it at the same time (while keeping its original extension).
>
> At step 4, I sometimes get this error:
>
> Unable to move file 'C:\web\server\path\images\temp\abcdefg.jpg' to path
> 'C:\web\server\path\images\picture.jpg'. Access is denied. (error 5)
>
> The error is intermittent. Anyone know why this would happen?  I know it's
> not complaining about overwriting the old file, since it has already been
> deleted but this point .. I'm lost.
>
> .Todd
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to