RE: CFFILE .. access denied.

2000-05-05 Thread Russel Madere

Todd,

I had the same problem.  Have the Network Admin make sure the Anonymous user
has access to read and write files in those directories.

-Original Message-
From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 05, 2000 1:05 PM
To: [EMAIL PROTECTED]
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=listsbody=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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CFFILE .. access denied.

2000-05-05 Thread Howie Hamlin

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=listsbody=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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CFFILE .. access denied.

2000-05-05 Thread Jennifer

At 02:04 PM 5/5/00 -0400, you wrote:
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.

It sounds like the server doesn't have permission to save to that folder or 
that it doesn't have permission to delete the new file from the temp 
directory. Does the intermittent error happen or not happen depending on 
the file names?
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: CFFILE .. access denied.

2000-05-05 Thread Ric Smith

Yeah I get this sometimes too. I think it has something to do with IIS
having
a hold on the image and not letting anything else touch it. It only happens
when
I do and upload, look at the result on the website then try and upload
again.

-- Ric Smith

 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=listsbody=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=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.