The final user does not need access to that folder, just CF. Let's say I want to access a file C:\docs\test.doc, but the user doesn't have access to C:\docs. CF has access to it, and the user has access to a CF application in the webroot. Create a file download.cfm under the webroot somewhere and pot the following code in it:
<cfheader name="Content-Disposition" value="attachment; filename=""test.doc"""> <cfcontent type="application/msword" file=" C:\docs\test.doc" deletefile="No"> This should enable the users to download the file by calling download.cfm. You have to make sure that coldfusion has access to the folder. Sandbox security may also prevent this, but then you have to talk to the server admin. > -----Original Message----- > From: Michel Deloux [mailto:[EMAIL PROTECTED] > Sent: 24 May 2005 13:01 > To: CF-Talk > Subject: Re: Viewing files in another server/directory outside CF server > > Thank you Pascal for your answer. But don't work for us. With CF > I(administrator user) can view all files stored in that protected > dir/server. But final user(without rights for read/write) don't... > Using cflocation, cffile with read and after write, all fails... Do > you have other choice? > > Can help us? > > Thanks for your time. > > 2005/5/23, Pascal Peters <[EMAIL PROTECTED]>: > > Use cfcontent to do that > > > > <cfheader name="Content-Disposition" value="attachment; > > filename=""#attributes.filename#"""> > > <cfcontent type="#attributes.mimetype#" file="#attributes.file#" > > deletefile="No"> > > > > Pascal > > > > > -----Original Message----- > > > From: Michel Deloux [mailto:[EMAIL PROTECTED] > > > Sent: 23 May 2005 16:54 > > > To: CF-Talk > > > Subject: Viewing files in another server/directory outside CF server > > > > > > Hi all > > > > > > I can upload files to CA_LA_Fresno server using CF user. CF user haves > > > administrator properties. But my user don't have permission to access > > > that server/directory. It's possible to my users see that file in your > > > browser or Word? > > > > > > How? > > > > > > Thanks in advance > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207525 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54