First, you should't be using a url var in a file path. This leads to directory traversal attacks.
Here is how you can make this work...
- First, make sure CF is running as a specific user. It should be already if the lockdown guid was followed.
- Take the same credentials that CF is running as (user/password) and create an identical account on the server where the files are stored.
- Create a share on the server to the files giving the CF user read permissions
- Change your code to use a UNC path to get to the file.
<cfset fileName = url.filename>
<!--- validate that the filename field is in an expected format --->
<!--- always use forward slashes for file paths. That way if the code moves to a linux based server you don't have to change anything. --->
<cfset fullPath = "//server/share/path/to/file/#filename.pdf">
<cfif fileexists(fullPath)>
<cfheader name="Content-disposition" value="attachment;filename=#fileName#.pdf">
<cfcontent file="#fullPath#" deletefile="false">
<cfelse>
File not found...
</cfif>
HTH,
--Dave