Web app, copy files on client machine

  • Thread starter Thread starter Iwan Petrow
  • Start date Start date
I

Iwan Petrow

Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.
 
This is a tricky question. Your web app doesn't have access to the client
machine.

To get acces you will have to take a different route. Most people would
try an ActiveX control here since they run inside the browser on the client
machine and as such have access to the file system. However this is an
unmanaged solution.

In terms on managed solutions I don't know of good one.
 
In terms on managed solutions I don't know of good one.
I don't believe there is.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
Jared Parsons said:
This is a tricky question. Your web app doesn't have access to the client
machine.

To get acces you will have to take a different route. Most people would
try an ActiveX control here since they run inside the browser on the
client machine and as such have access to the file system. However this
is an unmanaged solution.

In terms on managed solutions I don't know of good one.

--
Jared Parsons [MSFT]
(e-mail address removed)
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no
rights"
Iwan Petrow said:
Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.
 
You could do something in the form of

1) Having IE host a .NET Control via your page
2) Sign the assembly that contains the control
3) Grant Full Trust to the assembly on the client

That should give the control sufficient permissions to modify the computer.
The trick is step #3. For that you would need

1) Have the client user manually grant the assembly sufficient trust
2) Host a separate ActiveX control that grants the assembly trust.

I don't think the average user will want to do #1 and #2 is back into an
unmanaged solution.

--
Jared Parsons [MSFT]
(e-mail address removed)
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no rights"
Alvin Bruney said:
In terms on managed solutions I don't know of good one.
I don't believe there is.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
Jared Parsons said:
This is a tricky question. Your web app doesn't have access to the
client machine.

To get acces you will have to take a different route. Most people would
try an ActiveX control here since they run inside the browser on the
client machine and as such have access to the file system. However this
is an unmanaged solution.

In terms on managed solutions I don't know of good one.

--
Jared Parsons [MSFT]
(e-mail address removed)
http://blogs.msdn.com/jaredpar
"This posting is provided "AS IS" with no warranties, and confers no
rights"
Iwan Petrow said:
Hi
I have a Web application.

How could I copy a file from one path on the client machine to another
path on the client machine?

Thanks.
 
Back
Top