Re: question refined - Copy file from client to server
- From: "Marina Levit [MVP]" <someone@xxxxxxxxxx>
- Date: Wed, 8 Feb 2006 10:57:49 -0500
When you are on the server, you cannot access the client's machine. The
server returns a bunch of HTML and script to the clientn (all text), the
client's browser then renders it all. All the server can ever do is send
that HTML and script in plain text, and then it's up to the client to render
the page.
Now, scripts will not have the necessary security rights to access files
directly on the client's machine - this would be a major security hole.
There are ActiveX controls, etc, you can write and have the client install,
but it involves the user installing it and giving it the rights it needs to
access the client machine.
I recommend you read up on how web servers work, how what they do interacts
with the client, etc.
"CGW" <CGW@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:27A29AC0-2250-448B-A7E4-EF1D5006136F@xxxxxxxxxxxxxxxx
I asked the question yesterday, but know better how to ask it, today:
I'm trying to use the File.Copy method to copy a file from a client to
server (.Net web app under IIS [IUSR account]). It looks to me that when I
give a path like @"C:\holdfiles\myfile.txt" it looks on the server C
drive.
How do I pull from the client? Do I need a different class and/or method?
Filestream?
--
Thanks,
CGW
.
- Prev by Date: Efficiently convert Base 1 Array to Base 0 Array?
- Next by Date: Re: General network error when making asynchronous calls to long s
- Previous by thread: Efficiently convert Base 1 Array to Base 0 Array?
- Next by thread: Re: question refined - Copy file from client to server
- Index(es):
Relevant Pages
|