• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 193
  • Last Modified:

Uploading of file to server

Hi, i am building a vb.net app and i am required to let the user choose a file on their local drive and upload it to the server which is on the LAN. I was using the file.copy method and copy it to a mapped network drive but the way i am doing it is to...manually map the drive so if i have 100 clients...i will have to map the drive a 100 times? and after mapping the client can just go to my computer and access the drive. are there any better ways of doing this? preferably programmatically. thanks
0
jaxrpc
Asked:
jaxrpc
  • 2
  • 2
1 Solution
 
RimvisCommented:
How to upload a file to a Web server in ASP.NET by using Visual Basic .NET
http://support.microsoft.com/kb/323245/EN-US/

0
 
jaxrpcAuthor Commented:
sorry i am not using asp.net here. Just vb.net for desktop applications
0
 
jaxrpcAuthor Commented:
Maybe just to clarify..the server i am talking about is a file server.
0
 
Jeff CertainCommented:
Rather than mapping, try using the full path in code:
\\servername\folder name\file name

You'll proabbly need ot make sure that permissions are correctly set (i.e. there's a shared folder available)
0
 
Jeff CertainCommented:
Bob,

Full points to me on this one.  :)

Jeff
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now