There is no "just upload". It all depends what do you have on the server side; it should run appropriate service. In case of Web applications, is should have the upload page and be ready to accept uploads, process it using server-side script, typically.
One pretty much universal way of upload on the client site is the (abstract) class
System.Net.WebRequest
. A concrete class is defined by the URI scheme through the factory method
System.Net.WebRequest.Create(uri)
. Please see:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[
^].
The code sample on this page shows the use of
HttpWebRequest
class, which is used for HTTP and HTTPS protocols. On the same page, see other derived classes for FTP and file server protocols.
—SA