>
> > retrieve a file from another server??
>
> If you are running CF 5.0 or earlier, that's true. If you are running
> CFMX, cfcontent runs with the permissions of the server user that is
> running the CF Application Server process. Here is my checklist to set
> this all up:
>
> 1. Run your CF Server process under a user that has network
> permissions to the resource you want to access. On Windows you set
> this in the Services panel.
> 2. Create a share on your target system and grant the user from step 1
> rights to read from that share.
> 3. In cfcontent, access the target resource using UNC mapping- e.g.
> \\hostname or IP address\sharename\filename
>
> Then you should be able to serve your PDF from your other system.
>
> Rob
CF (5.0) is running w/ admin permissions.
I am able to get to the same file using <cfdirectory... list>; then surround the file name by <a herf> for my internal users this is fine; however, for users going through the webpage( behind the gateway), I do not want them to be able to change the original file.
--this does not work
<cfset requestedFile="\\myfileServer\firstFolder\secondfolder\kristen testing\kristen test.pdf">
however, if I put the same file on the CF SERVER it does work
<!--- <cfset requestedFile="d:\kristen test.pdf"> --->
<cfcontent type="application/pdf" file="#requestedFile#" deletefile="No">
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

