loader class : UploadFile(string,string) method
Description
Uploads a local file to the specified URL.
Syntax
loaderInstance.UploadFile(string targetUrl, string fileName)
Arguments
Class | Name | Description |
string | targetUrl | URL. |
string | fileName | Path of a file that want to upload. |
Return value
None
Sample code
1: | loader loa = new loader(); |
2: | string targetUrl = "ftp://..."; |
3: | string fileName = "c:\somewhere..."; |
4: | loa.UploadFile(targetUrl,fileName); |
Notes
It's a wrapper of the System.Net.WebClient.UploadFile(String,String) method.