FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Internal links to Windows shares (How do I link to a file on a shared drive?)
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Internal links to Windows shares [message #163948] Tue, 14 December 2010 18:14 Go to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member

Is there a way to include a hyperlink to a shared file on a network drive? I've tried a variety of syntax approaches, using the URL tags, but nothing has proved successful as of yet.

Let's say I want to include a link in a message to a file on a server with the path:

\\server1\folder1\subfolder2\filename.xls

How can I link to it from post? Also, if it affects the answer, sometimes the path may include blank spaces...

Thanks!

[Updated on: Tue, 14 December 2010 18:15]

Report message to a moderator

icon6.gif  Re: Internal links to Windows shares [message #163949 is a reply to message #163948] Wed, 15 December 2010 01:37 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
Do you mean, like a link included in a message , like that?

[url=http://cvs.prohost.org/index.php][color=red] a link included in a message [/color][/url]


"I'm a Witcher, I solve human problems; not always using a sword!"
Re: Internal links to Windows shares [message #163951 is a reply to message #163949] Wed, 15 December 2010 02:52 Go to previous messageGo to next message
tw_nick   United States
Messages: 57
Registered: October 2010
Location: Dallas, TX
Karma: 0
Member

No, not a link to a web page or site, but to a file on a server, accessible via a file share. The format I indicated in the original post is accurate. If I enter the link in that format directly into my address bar, the download file prompt appears.
Re: Internal links to Windows shares [message #163953 is a reply to message #163951] Wed, 15 December 2010 20:15 Go to previous messageGo to next message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
You cannot for security reasons link a local file via HTML, the only way to serve a file that is not in your webservers working directories is by serving it via a PHP function. This is a "limitation" in HTML and something you cannot work around other than coding a PHP file similair to the getfile.php that is used to serve attachments on the forum.

The easy answer: It is impossible to do and not something we/you can tweak fudforum to do


[Updated on: Wed, 15 December 2010 20:16]

Report message to a moderator

Re: Internal links to Windows shares [message #163954 is a reply to message #163953] Wed, 15 December 2010 20:19 Go to previous message
Ernesto is currently offline  Ernesto   Sweden
Messages: 413
Registered: August 2005
Karma: 0
Senior Member
You could code a PHP file that you place in your webserver directory that you can give GET input, for example, the URL could be like this:

[url=www.yourforum.com/deliverfile.php?name=filename.xls]filename.xls[/url]

This is not a good sollution though, a much better sollution to make your local file accessible from the web would be to create a CRON job that scans your directory for files that needs to be made public and then copy those files to a folder accessible by the webserver.


[Updated on: Wed, 15 December 2010 20:20]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Major XML-aggregation Confusion
Next Topic: Modify user's email
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 10:29:32 GMT 2024

Total time taken to generate the page: 0.02252 seconds