Click here to Skip to main content
13,897,352 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
i want to implement local file will open when open the url in browser please help me on this issue.


What I have tried:

i want to implement local file will open when open the url in browser please help me on this issue.
Posted
Updated 2-Dec-18 21:54pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

You can't. That's deliberate and very, very unlikely to change. It was possible for a very short period on some systems, but ActiveX was effectively banned by all browsers simply because it allowed things like that!

Think about it for a moment: if you could do it from your site, who else could do it? What ransomware would you pick up just by visiting a "safe looking" site?

No. Not going to happen
   
Comments
Member 13586096 3-Dec-18 8:40am
   
thanks but i use intralaunch(chrome extension) for implementing its works fine but they want without using any extension.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Assuming your intentions are not malicious, the main way to accomplish this in a legitimate manner is via custom URI protocol.

Registering an Application to a URI Scheme (Windows) | Microsoft Docs[^]
   
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Quote:
i want to implement local file will open when open the url in browser please help me on this issue.

By design, you can't without user consent. It is a security feature.
To load a file to local storage, you have to ask the user, and you have no way to force a particular destination or execution, both are user choice.
The feature you want is a dream for any malware.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.190306.1 | Last Updated 3 Dec 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100