Uploading ASCII text files

Top  Previous  Next

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

 

Setting your local directory