Links to local files do not work

Links to local files do not work in webbrowser

I'have a problem, I have made a intranet for a client. With links to local files as  *doc, *pdf & jpg.
I have make a link:  <a href="file:///G:/Maintenance/Schade/2018/example.jpg" target="_blank">photo</a>
But the link doesn't work. It seems that firefox and google chrome does not allow this. Does anyone know a solution?

thanks in advance
Ron BaasDirecteurAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mohan singhWeb developerCommented:
so your all code with image

I think your path is wrong please check image path is correct or not
Dave BaldwinFixer of ProblemsCommented:
Browsers and web servers don't normally allow that.  In particular, if you load the original file with 'http://', you will not be allowed to access a link on that page that starts with 'file://'.  And the web server user (IUSR) does not normally have to permission access files in drives and directories outside the web root directory.  These things were done years ago to stop bad web pages from stealing files from the users.  The only known solution is to move the files to the web root directories and do Not use 'file://' to access them.  If you were hoping to have them be editable, that is unlikely also.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mohan singhWeb developerCommented:
path should be like this

<a href="image_folder/Football.png"  target="_blank">photo</a> 

where  image_folder is your folder name and Football.png your image name

Open in new window

Ron BaasDirecteurAuthor Commented:
Thanks Dave for the answer,

I'll try the option to copy the files into the webdirectory
David Johnson, CD, MVPOwnerCommented:
add the directories to the virtual directories and reference them there
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Images and Photos

From novice to tech pro — start learning today.