I have created a site in Visual Studio using VB.Net and ASP.Net that allows the upload and download of files to and from an FTP server via SFTP
I have produced the code, and my site allows a file to be uploaded via SFTP (WinSCP) but when I go on to the server, the files that I have uploaded do not appear to be there.
Here is my code:
If (mySession.Opened) Then
transferOptions.TransferMode = TransferMode.Binary
'transferResult = session.PutFiles(FileUpload1.ToString, "/", True, transferOptions)
transferResult = mySession.PutFiles(LocalPath, RemotePath, False, transferOptions)
' Throw on any error
Can anybody please advise on whyt his is happening?