Don't quote me on this, but I would have thought that if you didn't have permission (or rather CF doesn't have permission) to write to the temp directory, it would error or fail siliently. Are you sure it's not the page you're attempting to go to that as the access restrictions?
Not really an answer, but can you not create your own temp directory to store the file in? Adrian http://www.adrianlynch.co.uk/ -----Original Message----- From: rob bos Sent: 12 April 2008 00:27 To: CF-Server Subject: Can't save to "#getTempDirectory()#" Probably a pretty basic problem ... I am using code below to upload an image file... it has always worked previously but i have just moved to a new web host and now i get a messge box asking for a username and password every time I try to upload a file - I presume this is a security issue with the server requiring a password to write to the Temp Directory? (Windows, CF8 and mssql 2005 server). What do i tell my Web Hosting company to do about this to prevent the user/pass dialog poping up so i can save to the TempDirectory (temporarily)? code excerpt... <!--- Accept the file upload ---> <cffile destination="#getTempDirectory()#" action="upload" nameConflict="OverWrite" filefield="photoFile" accept="image/*"> What do i need to do to get this to upload the image file *without* the password dialog box showing up? thanks, rob ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Server/message.cfm/messageid:6611 Subscription: http://www.houseoffusion.com/groups/CF-Server/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10
