Click here to Skip to main content
15,868,349 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have developed a web site for my company for intranet. This site issues tools to

the working personnel. My requirement is that when ever one tool is issues to any

person, the record should also be saved on the client PC as well in text or xml

format.

I am unable to find any code that could access the client hard disk. can any body

solve this problem.
Posted
Comments
Richard MacCutchan 5-Jul-14 2:19am    
Browsers are prohibited (for security reasons) from writing anything to client systems, other than cookies.

This is not allowed and it is for security reasons. If any Web App will manipulate the File System, then it will be risk to computer as it can do harm to computer if possible.

So, simply, don't do this. User should get the preference of choosing the folder, where he/she can save the file.
 
Share this answer
 
Web applications do not have access to the clients' computer. Would you feel fine if some site you may occasionally visit could write to your hard drive whatever their developers wanted? (As Richard MacCutchan correctly pointed out, "other then cookies", but the cookies are harmless by their nature and this feature is standard.)

However, in principle, such things are possible with ActiveX modules used in browser. This is basically the IE stuff. Not all browsers will support it in all systems. More importantly, this is utterly unsafe. Some security safety users will never come back to your site is they find out you are using something like that. In certain areas such techniques are used though. For example: 1) in intranet of the companies which have really bad IT; 2) hardware vendors offers such applications for remote hardware support, but this is done on user's consent; the user agree to download ActiveX-based software.

"Don't do evil".

—SA
 
Share this answer
 
v2

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