Rick Root wrote:
> Anyway, this customer, running CF 7.0.1 on Windows, was finding that
> the files imageCFC created were unreadable.  They appear to have been
> created properly, but the file permissions were such that neither the
> FTP user nor the web server could access the files, nor delete the
> files (really obnoxious)
> 
> The location of the temporary file was as such:
> 
> getTempFile(getTempDirectory(),"img")
> 
> However, If I skipped the temp directory and just write the files to
> the final destination, they were fine.

When you write files they inherit the permissions of the parent object 
(i.e. the directory). In Windows, when you move a file the permissions 
are not changed (unless you move it across drives). So while in both 
scenario's the files end up in the final destination, in the first 
scenario your files have the permissions of the CF temp dir.

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286059
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to