Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3982236
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:30:15+00:00 2026-05-20T05:30:15+00:00

I am working on a replacement application to a legacy application. Due to certain

  • 0

I am working on a replacement application to a legacy application. Due to certain design limitations of the legacy application, ‘attachments’ are stored as a String path in our database (generally files stored on a windows shared drive). The legacy application can then ‘open’ the attachments by opening a windows command shell and executing the given path.

The legacy (Oracle Forms) application is being phased out by a JSF based J2EE web application. The new application needs to be able to ‘open’ or link to these legacy attachments somehow. Is this even possible? I have attempted to use file:// URLs, but there are lot of caveats with using them. They only work on remote hosts in IE, firefox/chrome (and other modern browser I assume) prevent local file URLs.

Working only on IE is something that can be lived with for this particular feature. I further ran into an issue with file paths with spaces. For some reason if IE encounters a filepath with spaces in it, say

C:\Documents and Settings\user123\My Documents\testing\someFile.txt

it refuses to open that link. The browser automatically replaces the spaces (‘ ‘) with its URL Encoded ‘%20’.

The associated link I am attempting looks like:

<a href="file:///C:\Documents and Settings\user123\My Documents\testing\someFile.txt">link</a>

Is there something simple to this I am missing? Or is there any easier way of doing this?

I wasn’t quite sure what to tag this as so feel free to retag as necessary.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T05:30:16+00:00Added an answer on May 20, 2026 at 5:30 am

    After some extensive testing I have reached the following conclusions:

    • Only IE will open file:// links that are on a page from a remote host, Other browsers will block them outright and nothing will happen when a user clicks on them.
    • IE will only open file:// URLs that point to a file that resides on a network drive
      • If a user clicks on a file:// link pointing to a file on the user’s local drive, nothing will happen and they will get no error.
    • If a user clicks on a file:// link that points to a network file it will open in the browser, if possible.
    • If the file:// url points to an invalid location (unmapped network drive, file on a network drive that doesn’t exist), Windows will show a popup error.
    • Spaces in the file path needs to be URL encoded with %20

    Hopefully this helps someone else out who’s looking for information on file urls.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on application in Java that will maintain database of song lyrics in
I and a team-mate are working out an web-based application for our company. SQL
I'm working on an application that allows dentists to capture information about certain clinical
I am working on a small text replacement application that basically lets the user
I am working on a page cache replacement policy, I read many existing algorithms
Okay, I've been working through a set of string replacments for bbcode style tags
I'm working on maintenance of an application that transfers a file to another system
I'm working on a C++ application to read some data from an Excel file.
I am trying to get a Regex replacement working to update my AssemblyInfo.cs files,
I'm working on a Javascript-based replacement for a Flash applet. The site is having

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.