File copy from client to server, newbie question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Our intranet site is hosted on a local web server, behind a firewall. I need
to copy pdf files from client machines to a folder on the web server for
public posting. The File.Copy method appears to follow the path (such as
C:\PDFFiles) to the client machine. How do I distinquish that the path needs
to be on the serve? A simple copy is what I prefer to do.

By the way, I did try designating the server (\\webserver\C$\PDFFiles) but
that didn't seem to work.
 
\\ComputerName\C$ (or D$ or E$) is administrative share. If you are logged
on as the administrator of your network domain, you can access the folder
that way, not every user can do that (unless everyone is administraotor of
the domain).

Basically, you need the administraotor (might be you) goes to that computer,
creates a network share on that folder, and set appropriate access security,
so that only designated user(s) can read/write/modify any file in that
share.
 
OK, I tried that. I set up the share with access for the IUSR account. Using
@"\Sharename\filename" it works when I run it in debug on the server itself,
but when I run it from a client, it fails to write (without returning an
error message). And I can't debug from the client. Any suggestions?
--
Thanks,

CGW


Norman Yuan said:
\\ComputerName\C$ (or D$ or E$) is administrative share. If you are logged
on as the administrator of your network domain, you can access the folder
that way, not every user can do that (unless everyone is administraotor of
the domain).

Basically, you need the administraotor (might be you) goes to that computer,
creates a network share on that folder, and set appropriate access security,
so that only designated user(s) can read/write/modify any file in that
share.
 
I've been going at this backwards. It's not the share it's having trouble
with now; the problem is with finding the file on the client. I browse to the
file, select it, and try to upload and it doesn't see the file. Is it looking
on the server? We use this same technique elsewhere in the application to
load into byte arrays. I'm really puzzled now.
--
Thanks,

CGW


Norman Yuan said:
\\ComputerName\C$ (or D$ or E$) is administrative share. If you are logged
on as the administrator of your network domain, you can access the folder
that way, not every user can do that (unless everyone is administraotor of
the domain).

Basically, you need the administraotor (might be you) goes to that computer,
creates a network share on that folder, and set appropriate access security,
so that only designated user(s) can read/write/modify any file in that
share.
 
Back
Top