1

How do I link to a local/intranet file within HTML?

I've seen this and many other questions but it's not working for me. Not using Chrome and not using IE 11. Not for PDFs, WAVs or MP3s. Not clicking, not right-clicking/open-in-new-tab/window, not dragging.

Here's the HTML rendering (it's Ruby on Rails on the server).

<table cellspacing="2" cellpading="0px" border="1">
 <thead>
 <tr>
 <th>Verbiage</th>
 <th>Tags</th>
 <th>Language</th>
 <th>Talent</th>
 <th>Audio</th> 
 <th></th>
 <th></th>
 <th></th>
 </tr>
 </thead>
 <tbody>
 <tr>
 <td>A book</td>
 <td></td>
 <td>English</td>
 <td>Joe</td>
 <td>
 <a href="file:///C:\Ruby193\doc\bookofruby.pdf">C:\Ruby193\doc\bookofruby.pdf</a>
 </td>
 <td><a href="/prompts/12">Show</a></td>
 <td><a href="/prompts/12/edit">Edit</a></td>
 <td><a data-confirm="Are you sure?" data-method="delete" href="/prompts/12" rel="nofollow">Destroy</a></td>
 </tr>
 </tbody>
</table>
asked Apr 25, 2014 at 14:37

1 Answer 1

1

I found this post when I was looking to answer the same question. Thought I'd post the answer that worked for me in case it helps someone else.

Six slashes worked for me where three didn't. I also didn't need a backslash after my directory letter.

file://////Z:/filepath/filename.pdf
answered May 20, 2015 at 10:28
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.