Thanx Pascal I'm using this script to show to the user....
<a href="###" onclick="javascript: window.open('file://CA_LA_Fresno/Docs/FresnoPower.doc');" title="Please click here to view this documento">FresnoPower.doc</a> All users have READ only access to Docs subdir. In that situation if user clicks Internet Explorer show this message: Error message: Cannot find filename. Make sure the path or Internet Address is correct. What do you think about? Thanx in advance. 2005/5/24, Pascal Peters <[EMAIL PROTECTED]>: > 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 > > > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207528 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54