Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying files across an intranet
Message
From
16/12/2004 10:07:44
 
 
To
15/12/2004 20:05:04
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00969623
Message ID:
00969738
Views:
6
Hi David,

given your information, you could a) copy the file to a string using filetostr(); b) impersonate the account with server write privileges; c) write the string to the server using strtofile().

Hank

>I need my app to be able to copy a file from a client machine into a directory on a server.
>
>When I was developing it, I used my machine as both client and server and used the File.Copy method. Now that I am trying to copy from one computer to another on my intranet, I get "File Not Found" errors. I think the problem is with privileges, not my path string.
>
>I can impersonate an account with read and write privileges for the target directory on the server. The impersonated account does not, however, have rights on the client machine. Is the problem that, once impersonating the account on my server, it lacks the privilege to see the file on my client?
>
>Should I create a directory on the server than all client machines could write to and not use impersonation? I wanted a system that our network administrator wouldn't have to update to add new client machines.
>
>Do I need an account with privileges to read the original client file and write into the Server directory in order to copy a file? Would it be practical, when the user says to transfer the file to find a way to give the server account read privileges on the file and then revoke them after the file is copied?
>
>If anyone could direct me how to proceed, I would appreciate it.
Previous
Reply
Map
View

Click here to load this message in the networking platform