Uploading ASCII text files |
To upload ASCII text files you must set the TransferMode property to Ascii using the TransferModes enumeration. All files with relative paths will be uploaded from your current local directory.
Example
[C#]
// set transfer mode to ascii
myFtp.TransferMode = TransferModes.Ascii;
// upload all text files in current local directory
myFtp.MUpload("*.txt");
[Visual Basic]
' set transfer mode to ascii
myFtp.TransferMode = TransferModes.Ascii
' upload all text files in current local directory
myFtp.MUpload("*.txt")
See also