Solved

Uploading of file to server

Posted on 2006-07-05
8
175 Views
Last Modified: 2010-04-23
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
Comment
Question by:jaxrpc
  • 2
  • 2
8 Comments
 
LVL 19

Expert Comment

by:Rimvis
ID: 17042133
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
 

Author Comment

by:jaxrpc
ID: 17047547
sorry i am not using asp.net here. Just vb.net for desktop applications
0
 

Author Comment

by:jaxrpc
ID: 17047553
Maybe just to clarify..the server i am talking about is a file server.
0
 
LVL 24

Accepted Solution

by:
Jeff Certain earned 500 total points
ID: 17051700
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
 
LVL 24

Expert Comment

by:Jeff Certain
ID: 17208063
Bob,

Full points to me on this one.  :)

Jeff
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now