Click here to Skip to main content
15,868,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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
 
Share this answer
 
Comments
Murali10111 3-Dec-18 8:40am    
thanks but i use intralaunch(chrome extension) for implementing its works fine but they want without using any extension.
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[^]
 
Share this answer
 
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.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900