Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to open PDF files physically located in another machine

Status
Not open for further replies.

jianhua

Programmer
Jun 22, 2001
55
US
Hi,

I have some sensitive PDF files and they are physically located in another machine. Is it possible to open them by drive mapping and using cf tags like <cfcontent>?

For example: My cf template files are in drive C, my pdf files are in drive E (drive mapping). Can I open the PDF files by <cfcontent type=&quot;application/pdf&quot; file=&quot;e:\...&quot;>? I tried that and got the error &quot;An error occurred while attempting to open the file. Windows NT error number 5 occurred.&quot;

Is this possible? or you have better idea?

Thanks in advance...
jianhua
 
I dealt with this by storing the full path name in my database (e.g. DocLocation = O\:Engineering\TeamName\...\filename.pdf). I just pull the location from the database and use that in my link like this:
Code:
<A HREF=&quot;#DocLocation#&quot; TARGET=&quot;_blank&quot;>#DocTitle#</A>
Calista :-X
Jedi Knight,
Champion of the Force
 
P.S. I should point out that all these machines are on the corporate network. Calista :-X
Jedi Knight,
Champion of the Force
 
Thanks for your quick response. But my situation is a little different.

I have stored the full path in the database, too. I use drop-down boxes to display the files instead of using links because I have several thousand files which will be ugly to be displayed in one page. I group them to several drop-down boxes.

If I use <a href=&quot;&quot;>, the full path will be shown in the address box which is not we want. We need to hide the full path for the security purpose. In the drop-down boxes, I can encript the full paths, pass the values and then decript them when opening the files. For links, if I encript them, the browsers will never recognize them.

Any suggestions?

jianhua
 
I'm afraid you've got me on that one. I realized I had probably misunderstood your question after my last post. If I am following you, now, it is not that you are wanting to restrict access to who can view the file, you are trying to prevent the user from seeing where the file is stored, right?

I hope some one else can help you. Calista :-X
Jedi Knight,
Champion of the Force
 
Yes, first I need to restric access to view the files, and that part is controlled when people login (that part is done). Secondly, I need to prevent the user from seeing where the files are stored. After user accesses the page, different user will view different files. Actually the files are not stored in the user's local machine, and the user cannot open the file even if he sees the full path. But my client still wants me to hide the full path.

jianhua
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top